forked from pyung/pyconng-2019
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
46 lines (42 loc) · 885 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
43
44
45
46
version: '3.7'
services:
web:
build: ./web
command: python manage.py runserver 0.0.0.0:8000
volumes:
- ./web/:/usr/src/web/
expose:
- 8000
environment:
- DEBUG=1
- SECRET_KEY=devk33s
- SQL_ENGINE=django.db.backends.postgresql
- SQL_DATABASE=pyconng_dev
- SQL_USER=pyconng
- SQL_PASSWORD=pyconng
- SQL_HOST=db
- SQL_PORT=5432
- DATABASE=postgres
depends_on:
- db
links:
- db:db
db:
image: postgres:10.1-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=pyconng
- POSTGRES_PASSWORD=pyconng
- POSTGRES_DB=pyconng_dev
nginx:
build: ./nginx
volumes:
- static_volume:/usr/src/web/staticfiles
ports:
- 80:80
depends_on:
- web
volumes:
postgres_data:
static_volume: