-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
50 lines (49 loc) · 1.03 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
version: '3.9'
services:
web:
build: .
depends_on:
- db_postgres
volumes:
- .:/usr/src/code
- static_volume:/usr/src/code/static
- media_volume:/usr/src/code/media
env_file:
- ./.env.dev
command: gunicorn tify.wsgi:application --bind 0.0.0.0:8000
networks:
- nginx_network
- postgres_network
nginx:
build:
context: ./Dockerfiles/nginx
dockerfile: Dockerfile
ports:
- 8000:80
depends_on:
- web
volumes:
- ./config/nginx/conf.d:/etc/nginx/conf.d
- static_volume:/usr/src/code/static
- media_volume:/usr/src/code/media
networks:
- nginx_network
db_postgres:
build:
context: ./Dockerfiles/postgres
dockerfile: Dockerfile
env_file:
- ./.env.dev.db
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- postgres_network
networks:
nginx_network:
driver: bridge
postgres_network:
driver: bridge
volumes:
postgres_data:
static_volume:
media_volume: