-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (39 loc) · 864 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (39 loc) · 864 Bytes
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
version: '3'
services:
django:
build: .
command: python manage.py runserver 0.0.0.0:8000
volumes:
- .:/usr/src/dist/
ports:
- 127.0.0.1:8000:8000
environment:
- SECRET_KEY=foo
- SQL_ENGINE=django.db.backends.postgresql
- SQL_DATABASE=postgres_dev
- SQL_USER=postgres
- SQL_PASSWORD=postgres
- SQL_HOST=database
- SQL_PORT=5432
- DATABASE=postgres
depends_on:
- database
networks:
- database_network
database:
image: postgres:11-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
expose:
- 5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres_dev
networks:
- database_network
volumes:
postgres_data:
networks:
database_network:
driver: bridge