-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.server.override.yml
50 lines (47 loc) · 1.41 KB
/
docker-compose.server.override.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
services:
phpfpm:
environment:
- PHP_MEMORY_LIMIT=256M
depends_on:
- rabbit
volumes:
- ../../shared/.env.local:/app/.env.local
- ../../shared/images:/app/public/images/
nginx:
environment:
APP_PATH_PREFIX: ${APP_PATH_PREFIX}
volumes:
- ../../shared/images:/app/public/images/
supervisor:
# @TODO: Create supervisor with ansible, when merged with Ture's PR
image: itkdev/supervisor-php8.3:alpine
restart: unless-stopped
stop_grace_period: 20s
environment:
- APP_SUPERVISOR_COMMAND=/app/bin/console messenger:consume --env=prod --no-debug --time-limit=900 --failure-limit=1 async scheduler_default
- APP_SUPERVISOR_WORKERS=4
- APP_SUPERVISOR_USER=deploy
- PHP_MAX_EXECUTION_TIME=30
- PHP_MEMORY_LIMIT=256M
- PHP_TIMEZONE=UTC
networks:
- app
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- .:/app
- ../../shared/.env.local:/app/.env.local
- ../../shared/images:/app/public/images/
depends_on:
- rabbit
rabbit:
image: rabbitmq:3.13-management-alpine
restart: unless-stopped
networks:
- app
environment:
- "RABBITMQ_DEFAULT_USER=${RABBITMQ_USER}"
- "RABBITMQ_DEFAULT_PASS=${RABBITMQ_PASSWORD}"
- "RABBITMQ_ERLANG_COOKIE=${RABBITMQ_ERLANG_COOKIE}"
volumes:
- "./.docker/data/rabbit:/var/lib/rabbitmq/mnesia"