-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
86 lines (80 loc) · 2.16 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
version: "3.4"
services:
# The nginx image will compile all the frontend code by itself
# look at the Dockerfile-nginx for more information
nginx:
build:
context: ./frontend
dockerfile: Dockerfile
image: adalitix/nginx
container_name: adalitix-nginx
ports:
- "23000:80"
- "8000:8000"
volumes:
- static-content:/static
depends_on:
- backend
networks:
- adalitix
backend:
build:
context: ./backend
dockerfile: Dockerfile
image: adalitix/backend-prod
container_name: adalitix-backend-prod
command: gunicorn backend.wsgi -b 0.0.0.0:8000
entrypoint: /home/devel/adalitix/backend/entrypoint-prod.sh
volumes:
- static-content:/home/devel/adalitix/backend/backend/static
expose:
- "8000"
ports:
- "28000:8000"
environment:
- DJANGO_SETTINGS_MODULE=config.settings.prod
networks:
- adalitix
depends_on:
- db
- geoserver
- clipper
clipper:
build:
context: ./clipper
dockerfile: Dockerfile
image: adalitix/clipper-prod
container_name: adalitix-clipper-prod
expose:
- "1337"
- "1338"
privileged: true
networks:
- adalitix
db:
image: mdillon/postgis:9.6-alpine
container_name: adalitix-postgis
ports:
- "25432:5432"
environment:
- POSTGRES_USER=adalitix
- POSTGRES_PASSWORD=adalitix
- POSTGRES_DB=adalitix
networks:
- adalitix
geoserver:
image: kartoza/geoserver:2.13.0
container_name: adalitix-geoserver
environment:
- GEOSERVER_DATA_DIR=/opt/geoserver/data_dir
volumes:
- geoserver-data-dir:/opt/geoserver/data_dir
ports:
- "28080:8080"
networks:
- adalitix
volumes:
static-content:
geoserver-data-dir:
networks:
adalitix: