-
Notifications
You must be signed in to change notification settings - Fork 108
/
docker-compose.yml
42 lines (41 loc) · 1021 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
40
41
42
version: '2'
services:
nginx:
extends:
file: docker-common.yml
service: nginx
ports:
- 8000:80
volumes:
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
volumes_from:
- django_app
postgres:
extends:
file: docker-common.yml
service: postgres
ports:
- 5432:5432
env_file:
- ./origami.env
volumes:
- ./docker/postgres/init-user-db.sh:/docker-entrypoint-initdb.d/init-user-db.sh
django_app:
extends:
file: docker-common.yml
service: django_app
links:
- postgres
- redis
entrypoint:
- ./docker/django/django-entrypoint.sh
env_file:
- ./origami.env
expose:
- 8000
redis:
extends:
file: docker-common.yml
service: redis
ports:
- 6379:6379