-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
46 lines (42 loc) · 1.05 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
45
46
version: '3.7'
services:
db:
image: postgres:10.1-alpine
volumes:
- /var/spacedb/postgres/data:/var/lib/postgresql/data/
networks:
- db_network
app:
build: .
command: gunicorn --access-logfile - --error-logfile - --capture-output --log-level info -b '0.0.0.0:8000' -w 5 spacedb.wsgi
environment:
- DJANGO_SETTINGS_MODULE=spacedb.settings_prod
volumes:
- ./static:/app/static
- /var/spacedb/raw:/app/data/rawdata
- /var/spacedb/manual:/app/data/manual
ports:
- 8000:8000
networks:
- nginx_network
- db_network
depends_on:
- db
nginx:
image: nginx:1.13
volumes:
- ./config/nginx/conf.d:/etc/nginx/conf.d
- ./static:/var/www/static
- /var/spacedb/raw/shapes/archive:/var/www/static/data/shapefiles/damit
- /var/spacedb/manual/shapes:/var/www/static/data/shapefiles/manual
ports:
- 80:80
networks:
- nginx_network
depends_on:
- app
networks:
nginx_network:
driver: bridge
db_network:
driver: bridge