-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
53 lines (48 loc) · 1.08 KB
/
docker-compose.yaml
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
47
48
49
50
51
52
53
version: '3'
services:
postgres:
restart: unless-stopped
image: postgres:15
env_file:
- ./.env
volumes:
- postgres_data:/var/lib/postgresql/data/
networks:
- project_network
django:
restart: unless-stopped
build:
context: .
dockerfile: Dockerfile
env_file:
- ./.env
volumes:
- static_volume:/menu-manager-API/static
- media_volume:/menu-manager-API/media
networks:
- project_network
depends_on:
- postgres
nginx:
restart: unless-stopped
build:
context: .
dockerfile: ./nginx/DockerFile
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d/default.conf
- static_volume:/menu-manager-API/static
- media_volume:/menu-manager-API/media
networks:
- project_network
depends_on:
- django
volumes:
static_volume:
media_volume:
postgres_data:
networks:
project_network:
driver: bridge