-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
77 lines (69 loc) · 1.47 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
70
71
72
73
74
75
76
services:
lb:
image: traefik:2.3
ports:
- "80:80"
- "443:443"
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./docker/traefik/traefik.yml:/etc/traefik/traefik.yml:delegated
- ./docker/traefik/traefik_dynamic_conf.yml:/etc/traefik/traefik_dynamic_conf.yml:delegated
labels:
- "traefik.http.routers.dashboard.service=api@internal"
database:
image: mariadb:10
command: ["--default-authentication-plugin=mysql_native_password"]
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD:
MYSQL_DATABASE:
MYSQL_USER:
MYSQL_PASSWORD:
MARIADB_RANDOM_ROOT_PASSWORD:
env_file:
- .env
volumes:
- db:/var/lib/mysql
node:
build: ./docker/node
depends_on:
- app
env_file:
- .env
volumes:
- ./symfony:/var/www/html:cached
app:
build: .
volumes:
- ./symfony:/var/www/html:cached
environment:
APP_ENV:
NODE_ENV:
APP_SECRET:
DB_NAME:
DB_HOST:
DB_USER:
DB_PASSWORD:
ENABLE_CAS:
CAS_HOST:
CAS_VERSION:
CAS_URI:
CAS_PORT:
MAILER_DSN:
env_file:
- .env
depends_on:
- database
mailhog:
image: mailhog/mailhog:latest
restart: unless-stopped
ports:
- "25:1025"
labels:
- traefik.enable=true
- traefik.http.services.mailhog.loadbalancer.server.port=8025
volumes:
db:
modsecurity: