-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
124 lines (117 loc) · 3.26 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
version: '3.4'
services:
db:
image: geonode/postgis:10
restart: on-failure
container_name: db4${COMPOSE_PROJECT_NAME}
stdin_open: true
# tty: true
labels:
org.geonode.component: db
org.geonode.instance.name: geonode
volumes:
- dbdata:/var/lib/postgresql/data
- dbbackups:/pg_backups
env_file:
- ./scripts/docker/env/production/db.env
geoserver:
image: olivierdalang/spcgeonode:geoserver-latest
build: ./geoserver/
healthcheck:
test: "curl --fail --silent --write-out 'HTTP CODE : %{http_code}\n' --output /dev/null http://127.0.0.1:8080/geoserver/rest/workspaces/geonode.html"
interval: 60s
timeout: 10s
retries: 1
start_period: 60s
container_name: geoserver4${COMPOSE_PROJECT_NAME}
stdin_open: true
# tty: true
labels:
org.geonode.component: geoserver
org.geonode.instance.name: geonode
depends_on:
- db
- data-dir-conf
volumes:
- geodatadir:/spcgeonode-geodatadir/
env_file:
- ./scripts/docker/env/production/geoserver.env
restart: on-failure
django:
restart: on-failure
build: .
container_name: django4${COMPOSE_PROJECT_NAME}
stdin_open: true
# tty: true
labels:
org.geonode.component: django
org.geonode.instance.name: geonode
depends_on:
- db
- data-dir-conf
# command: paver start_django -b 0.0.0.0:8000
# command: uwsgi --ini uwsgi.ini
volumes:
- statics:/mnt/volumes/statics
- geodatadir:/spcgeonode-geodatadir/
env_file:
- ./scripts/docker/env/production/django.env
geonode:
image: olivierdalang/spcgeonode:nginx-latest
build: ./nginx/
restart: on-failure
container_name: nginx4${COMPOSE_PROJECT_NAME}
stdin_open: true
# tty: true
labels:
org.geonode.component: nginx
org.geonode.instance.name: geonode
depends_on:
- django
- geoserver
ports:
- "${HTTP_PORT}:80"
- "${HTTPS_PORT}:443"
volumes:
- statics:/mnt/volumes/statics
- certificates:/spcgeonode-certificates/
environment:
- HTTPS_HOST=${HTTPS_HOST}
- HTTP_HOST=${HTTP_HOST}
- LETSENCRYPT_MODE=${LETSENCRYPT_MODE}
- RESOLVER=127.0.0.11
# Gets and installs letsencrypt certificates
letsencrypt:
image: olivierdalang/spcgeonode:letsencrypt-latest
build: ./letsencrypt/
environment:
- HTTPS_HOST=${HTTPS_HOST}
- HTTP_HOST=${HTTP_HOST}
- ADMIN_EMAIL=${ADMIN_EMAIL}
- LETSENCRYPT_MODE=${LETSENCRYPT_MODE}
volumes:
- certificates:/spcgeonode-certificates/
restart: on-failure
data-dir-conf:
image: geonode/geoserver_data:2.14.x
restart: on-failure
container_name: gsconf4${COMPOSE_PROJECT_NAME}
labels:
org.geonode.component: conf
org.geonode.instance.name: geonode
command: /bin/true
volumes:
- geodatadir:/spcgeonode-geodatadir/
volumes:
statics:
name: ${COMPOSE_PROJECT_NAME}-statics
geodatadir:
name: ${COMPOSE_PROJECT_NAME}-gsdocdatadir
dbdata:
name: ${COMPOSE_PROJECT_NAME}-dbdata
dbbackups:
name: ${COMPOSE_PROJECT_NAME}-dbbackups
rabbitmq:
name: ${COMPOSE_PROJECT_NAME}-rabbitmq
certificates:
name: ${COMPOSE_PROJECT_NAME}-certificates