-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathdocker-compose.yml
148 lines (139 loc) · 3.89 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
version: '2.2'
services:
db:
image: geonode/postgis:9.6
restart: unless-stopped
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: .env
dbsos:
image: cnrireami/getit:dbsos-postgis-9.5
restart: unless-stopped
container_name: dbsos4${COMPOSE_PROJECT_NAME}
stdin_open: true
# tty: true
labels:
org.geonode.component: dbsos
org.geonode.instance.name: geonode
# ports:
# - 5432:5432
volumes:
- dbsosdata:/dbsosdata
env_file: .env
sos:
image: cnrireami/getit:sos-configured-4.4.2
restart: unless-stopped
container_name: sos4${COMPOSE_PROJECT_NAME}
stdin_open: true
# tty: true
labels:
org.geonode.component: sos
org.geonode.instance.name: geonode
depends_on:
- dbsos
env_file: .env
geoserver:
image: cnrireami/getit:geoserver-2.15.4
restart: unless-stopped
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:
- geoserver-data-dir:/geoserver_data/data
env_file:
- .env
- ./scripts/docker/env/production/geoserver.env
django:
image: cnrireami/getit:starterkit-2.10.3
restart: unless-stopped
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: django-admin.py runserver 0.0.0.0:8000 --settings=geosk.settings
volumes:
- statics:/mnt/volumes/statics
- geoserver-data-dir:/geoserver_data/data
env_file:
- .env
- ./scripts/docker/env/production/django.env
geonode:
image: cnrireami/getit:nginx-sos
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
- sos
ports:
- "80:80"
- "443:443"
volumes:
- nginx-confd:/etc/nginx
- nginx-certificates:/geonode-certificates
- statics:/mnt/volumes/statics
env_file:
- .env
- ./scripts/docker/env/production/nginx.env
# In order, under certain circumstances, when running in a Local Area Network, to make django and SOS communicate
# it is necessary to specify the following "extra_hosts" setting, and to set the variable DOCKER_HOST_IP in the .env
# with the LAN ip of the docker host
#extra_hosts:
# - ${GEONODE_LB_HOST_IP}:${DOCKER_HOST_IP}
# Gets and installs letsencrypt certificates
letsencrypt:
image: cnrireami/getit:letsencrypt-2.10.3
restart: on-failure
volumes:
- nginx-certificates:/geonode-certificates/
env_file:
- .env
- ./scripts/docker/env/production/nginx.env
data-dir-conf:
image: geonode/geoserver_data:2.15.4
restart: on-failure
container_name: gsconf4${COMPOSE_PROJECT_NAME}
labels:
org.geonode.component: conf
org.geonode.instance.name: geonode
command: /bin/true
volumes:
- geoserver-data-dir:/geoserver_data/data
volumes:
statics:
name: ${COMPOSE_PROJECT_NAME}-statics
nginx-confd:
name: ${COMPOSE_PROJECT_NAME}-nginxconfd
nginx-certificates:
name: ${COMPOSE_PROJECT_NAME}-nginxcerts
geoserver-data-dir:
name: ${COMPOSE_PROJECT_NAME}-gsdatadir
dbdata:
name: ${COMPOSE_PROJECT_NAME}-dbdata
dbsosdata:
name: ${COMPOSE_PROJECT_NAME}-dbsosdata
dbbackups:
name: ${COMPOSE_PROJECT_NAME}-dbbackups