@@ -0,0 +1,62 @@
|
||||
{
|
||||
"name": "investmoz-suitecrm-test",
|
||||
"services": {
|
||||
"db": {
|
||||
"image": "mariadb:11.4@sha256:70cc072b29b4a89ae07abb2d4da2c64678a7f2dfe092751bb51c87d67dc1338b",
|
||||
"restart": "unless-stopped",
|
||||
"environment": {
|
||||
"MARIADB_DATABASE": "suitecrm",
|
||||
"MARIADB_USER": "suitecrm",
|
||||
"MARIADB_PASSWORD_FILE": "/run/secrets/db_password",
|
||||
"MARIADB_ROOT_PASSWORD_FILE": "/run/secrets/db_root_password"
|
||||
},
|
||||
"secrets": ["db_password", "db_root_password"],
|
||||
"volumes": ["crm_database:/var/lib/mysql"],
|
||||
"networks": ["crm_database"],
|
||||
"healthcheck": {
|
||||
"test": [
|
||||
"CMD",
|
||||
"healthcheck.sh",
|
||||
"--connect",
|
||||
"--innodb_initialized"
|
||||
],
|
||||
"interval": "10s",
|
||||
"timeout": "5s",
|
||||
"retries": 10,
|
||||
"start_period": "30s"
|
||||
}
|
||||
},
|
||||
"web": {
|
||||
"build": { "context": "." },
|
||||
"image": "investmoz-suitecrm:8.10.2-test",
|
||||
"restart": "unless-stopped",
|
||||
"ports": ["127.0.0.1:8088:80"],
|
||||
"volumes": ["crm_application:/var/www/html"],
|
||||
"networks": ["crm_database", "crm_web"],
|
||||
"depends_on": { "db": { "condition": "service_healthy" } }
|
||||
},
|
||||
"worker": {
|
||||
"image": "investmoz-suitecrm:8.10.2-test",
|
||||
"profiles": ["installed"],
|
||||
"user": "www-data",
|
||||
"restart": "unless-stopped",
|
||||
"command": [
|
||||
"php",
|
||||
"bin/console",
|
||||
"messenger:consume",
|
||||
"internal-async",
|
||||
"--time-limit=3600",
|
||||
"--memory-limit=256M"
|
||||
],
|
||||
"volumes": ["crm_application:/var/www/html"],
|
||||
"networks": ["crm_database", "crm_web"],
|
||||
"depends_on": { "db": { "condition": "service_healthy" } }
|
||||
}
|
||||
},
|
||||
"secrets": {
|
||||
"db_password": { "file": "./.secrets/db_password" },
|
||||
"db_root_password": { "file": "./.secrets/db_root_password" }
|
||||
},
|
||||
"volumes": { "crm_database": {}, "crm_application": {} },
|
||||
"networks": { "crm_database": { "internal": true }, "crm_web": {} }
|
||||
}
|
||||
Reference in New Issue
Block a user