-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
42 lines (38 loc) · 912 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
# Default compose file for development and production.
# Should be used directly in development.
# Automatically loads `docker-compose.override.yml` if it exists.
# No extra steps required.
# Should be used together with `docker/docker-compose.prod.yml`
# in production.
version: "3"
services:
db:
image: "postgres:9.6.5-alpine"
restart: always
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- webnet
env_file: ./config/.env
web:
build:
context: .
dockerfile: ./docker/django/Dockerfile
args:
DJANGO_ENV: development
command: python -Wd manage.py runserver 0.0.0.0:8000
volumes:
- .:/code
- django-static:/var/www/django/static
depends_on:
- db
networks:
- webnet
env_file: ./config/.env
environment:
DJANGO_DATABASE_HOST: db
networks:
webnet:
volumes:
pgdata:
django-static: