-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (44 loc) · 1 KB
/
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
version: "3.0"
services:
db:
build:
context: ./Docker
dockerfile: postgres.Dockerfile
env_file:
- .env.db
expose:
- "5432"
ports:
- 5432:5432
volumes:
- db_data:/var/lib/postgresql/data
web:
build:
context: ./where_to_go
dockerfile: ./Docker/django.Dockerfile
args:
DJANGO_ENV: production
env_file:
- ./.env
volumes:
- web_static:/application/static
- web_media:/application/media
depends_on:
- db
web-server:
build:
context: ./Docker
dockerfile: nginx.Dockerfile
expose:
- "80"
ports:
- 80:80
volumes:
- web_static:/application/static
- web_media:/application/media
depends_on:
- web
volumes:
db_data:
web_static:
web_media: