-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
39 lines (38 loc) · 938 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
37
38
39
version: '2'
services:
nginx:
extends:
file: docker-common.yml
service: nginx
ports:
- 8000:8000
volumes:
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
volumes_from:
- backend
postgres:
extends:
file: docker-common.yml
service: postgres
ports:
- 5433:5432
volumes:
- ./docker/postgres/init-user-db.sh:/docker-entrypoint-initdb.d/init-user-db.sh
backend:
extends:
file: docker-common.yml
service: django
links:
- postgres
entrypoint:
- /django-entrypoint.sh
expose:
- 8000
frontend:
extends:
file: docker-common.yml
service: web
links:
- backend
entrypoint:
- /web-entrypoint.sh