forked from maciej3031/comixify
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
51 lines (46 loc) · 854 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
43
44
45
46
47
48
49
50
51
version: '2.3'
services:
db:
image: postgres:10
env_file:
- db.env
networks:
- db_network
volumes:
- db_volume:/var/lib/postgresql/data
web:
build: .
runtime: nvidia
volumes:
- static_volume:/comixify/static
- media_volume:/comixify/media
networks:
- nginx_network
- db_network
depends_on:
- db
environment:
- DEBUG=true
- PYTHONUNBUFFERED=1
tty: true
nginx:
image: nginx
ports:
- 80:80
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
- static_volume:/comixify/static
- media_volume:/comixify/media
depends_on:
- web
networks:
- nginx_network
networks:
nginx_network:
driver: bridge
db_network:
driver: bridge
volumes:
db_volume:
static_volume:
media_volume: