Last active
April 22, 2026 01:05
-
-
Save pjaudiomv/bca3ee96b45e7d0ff804771e43bfa079 to your computer and use it in GitHub Desktop.
BMTL Aggregator Docker Compose
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| x-bmlt-common: &bmlt-common | |
| image: bmltenabled/bmlt-server:latest | |
| restart: unless-stopped | |
| environment: | |
| APP_KEY: "base64:srS1uJ3KpqVGqX7K8GgKkIJ54NnuTmEQGmmWZj78sRM=" | |
| DB_HOST: db | |
| DB_DATABASE: rootserver | |
| DB_USERNAME: rootserver | |
| DB_PASSWORD: CHANGE_ME | |
| AGGREGATOR_MODE_ENABLED: true | |
| depends_on: | |
| db: | |
| condition: service_healthy | |
| # docker compose exec bmlt php /var/www/html/main_server/artisan aggregator:InitializeDatabase | |
| services: | |
| bmlt: | |
| <<: *bmlt-common | |
| ports: | |
| - "8000:8000" | |
| healthcheck: | |
| test: ["CMD", "curl", "-sf", "http://localhost:8000/main_server/"] | |
| interval: 30s | |
| retries: 5 | |
| importer: | |
| <<: *bmlt-common | |
| entrypoint: | |
| - /bin/bash | |
| - -lc | |
| - | | |
| while :; do | |
| php /var/www/html/main_server/artisan aggregator:ImportRootServers | |
| sleep 14400 # 4 hours | |
| done | |
| db: | |
| image: mariadb:10.11 | |
| restart: unless-stopped | |
| environment: | |
| MARIADB_ROOT_PASSWORD: CHANGE_ME_ROOT | |
| MARIADB_DATABASE: rootserver | |
| MARIADB_USER: rootserver | |
| MARIADB_PASSWORD: CHANGE_ME | |
| volumes: | |
| - db_data:/var/lib/mysql | |
| healthcheck: | |
| test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"] | |
| interval: 10s | |
| timeout: 5s | |
| retries: 10 | |
| volumes: | |
| db_data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment