forked from mautic/docker-mautic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
65 lines (61 loc) · 2.11 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
x-mautic-volumes: &mautic-volumes
- ./volumes/mautic:/var/www/html:z
- ./volumes/cron:/opt/mautic/cron:z
x-mautic-environments: &mautic-environments
MAUTIC_VERSION: ${MAUTIC_VERSION:-5.x-dev}
TZ: ${TZ:-CET}
HOST_UID: ${HOST_UID:-1000}
HOST_GID: ${HOST_GID:-1000}
MAUTIC_DB_HOST: ${MAUTIC_DB_HOST:-mysql}
MAUTIC_DB_PORT: ${MAUTIC_DB_PORT:-3306}
MAUTIC_DB_USER: ${MAUTIC_DB_USER:-mautic}
MAUTIC_DB_PASSWORD: ${MAUTIC_DB_PASSWORD:-mautic}
MAUTIC_DB_NAME: ${MAUTIC_DB_NAME:-mautic}
MAUTIC_RUN_CRON_JOBS: ${MAUTIC_RUN_CRON_JOBS:-true}
XDEBUG_CONFIG: ${XDEBUG_CONFIG:-}
MAUTIC_MESSENGER_DSN_EMAIL: ${MAUTIC_MESSENGER_DSN_EMAIL:-doctrine://default}
MAUTIC_MESSENGER_DSN_HIT: ${MAUTIC_MESSENGER_DSN_HIT:-doctrine://default}
services:
mautic_web:
image: ghcr.io/librecodecoop/mautic:${MAUTIC_VERSION:-5.x-dev}-${IMAGE_TYPE:-apache}
# build:
# context: .docker/
# dockerfile: Dockerfile.${IMAGE_TYPE:-apache}
restart: unless-stopped
volumes: *mautic-volumes
environment:
<<: *mautic-environments
DOCKER_MAUTIC_LOAD_TEST_DATA: ${DOCKER_MAUTIC_LOAD_TEST_DATA:-false}
DOCKER_MAUTIC_RUN_MIGRATIONS: ${DOCKER_MAUTIC_RUN_MIGRATIONS:-false}
healthcheck:
test: curl http://localhost
start_period: 5s
interval: 5s
timeout: 5s
retries: 100
mautic_cron:
image: ghcr.io/librecodecoop/mautic:${MAUTIC_VERSION:-5.x-dev}-${IMAGE_TYPE:-apache}
# build:
# context: .docker/
# dockerfile: Dockerfile.${IMAGE_TYPE:-apache}
restart: unless-stopped
volumes: *mautic-volumes
environment:
<<: *mautic-environments
DOCKER_MAUTIC_ROLE: mautic_cron
depends_on:
mautic_web:
condition: service_healthy
mautic_worker:
image: ghcr.io/librecodecoop/mautic:${MAUTIC_VERSION:-5.x-dev}-${IMAGE_TYPE:-apache}
# build:
# context: .docker/
# dockerfile: Dockerfile.${IMAGE_TYPE:-apache}
restart: unless-stopped
volumes: *mautic-volumes
environment:
<<: *mautic-environments
DOCKER_MAUTIC_ROLE: mautic_worker
depends_on:
mautic_web:
condition: service_healthy