forked from parti-renaissance/espace-adherent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
69 lines (63 loc) · 1.83 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
66
67
68
69
services:
app:
build:
context: .
target: php_caddy
args:
BUILD_DEV: true
restart: unless-stopped
networks:
default:
aliases:
- enmarche.code
- renaissance.code
- test.enmarche.code
- test.renaissance.code
volumes:
- ./:/srv/app
- /srv/app/var/cache
- /srv/app/var/log
- /srv/app/var/.php_cs
- ./docker/php/conf.d/app.dev.ini:/usr/local/etc/php/conf.d/app.ini:ro
- caddy_data:/data
- caddy_config:/config
# If you develop on Mac or Windows you can remove the vendor/ directory
# from the bind-mount for better performance by enabling the next line:
# - /srv/app/vendor
depends_on:
- db
- rabbitmq
- redis
healthcheck:
interval: 10s
timeout: 3s
retries: 3
start_period: 30s
environment:
# See https://xdebug.org/docs/all_settings#mode
XDEBUG_MODE: "${XDEBUG_MODE:-off}"
extra_hosts:
# Ensure that host.docker.internal is correctly defined on Linux
- host.docker.internal:host-gateway
db:
image: mysql:8.0
volumes:
- ./docker/mysql/my.cnf:/etc/mysql/conf.d/my.cnf
environment:
MYSQL_ROOT_PASSWORD: root
redis:
image: redis:6-alpine
rabbitmq:
image: rabbitmq:3-management-alpine
node:
build:
context: .
target: node
volumes:
- ./:/srv/app
selenium:
image: selenium/standalone-chrome:90.0
shm_size: 2g
volumes:
caddy_data:
caddy_config: