-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
36 lines (36 loc) · 905 Bytes
/
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
version: '3.5'
services:
angular-service:
container_name: angularcontainer
build: ./project
volumes:
- './project:/usr/src/app'
ports:
- '4200:4200'
command: >
bash -c "cd app/ && ng serve --host 0.0.0.0 --port 4200"
postgres:
image: postgres
hostname: postgres
ports:
- "5432:5432"
environment:
- POSTGRES_DB=papw-rpg
- POSTGRES_USER=krythor
- POSTGRES_PASSWORD=root
api-service:
container_name: rpg-api
build: ./api
volumes:
- './api:/usr/src/api'
ports:
- '8005:8005'
depends_on:
- postgres
command:
sh -c "/wait && cd /usr/src/api && python manage.py migrate && python manage.py runserver 0.0.0.0:8005"
environment:
- WAIT_HOSTS=postgres:5432
- WAIT_HOSTS_TIMEOUT=300
- WAIT_SLEEP_INTERVAL=30
- WAIT_HOST_CONNECT_TIMEOUT=30