-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
54 lines (53 loc) · 1.2 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
version: '3.6'
services:
mailcatcher.smtp:
image: schickling/mailcatcher
networks:
- backend
diplomacy.mysql:
image: 'mariadb:latest'
restart: always
environment:
- MYSQL_HOST=localhost
- MYSQL_PORT=3306
- MYSQL_ROOT_HOST=%
- MYSQL_DATABASE=diplomacy
- MYSQL_USER=APP_USER
- MYSQL_PASSWORD=APP_USER
- MYSQL_ROOT_PASSWORD=root
networks:
- backend
diplomacy.service:
build:
args:
- ENV=dev
context: .
dockerfile: .docker/Dockerfile
target: diplomacy-service
environment:
- RUNTIMEINSTALL=1
- RUNMIGRATIONS=1
- WAITFOR=diplomacy.mysql:3306
networks:
- backend
diplomacy.worker:
build:
args:
- ENV=dev
context: .
dockerfile: .docker/Dockerfile
target: diplomacy-worker
environment:
- RUNTIMEINSTALL=1
- WAITFOR=diplomacy.mysql:3306 diplomacy.rabbitmq:5672 diplomacy.service:8000
networks:
- backend
diplomacy.rabbitmq:
environment:
- RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS=-rabbit log [{console,[{level,warning}]}]
image: rabbitmq
networks:
- backend
networks:
backend:
driver: bridge