-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
179 lines (168 loc) · 4.27 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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
version: "3.7"
services:
xgds:
container_name: docker-compose-xgds
build:
context: ./subsea
dockerfile: Dockerfile
args:
- BING_MAPS_API_KEY=${BING_MAPS_API_KEY}
hostname: xgds
ports:
- "127.0.0.1:8181:8181"
depends_on:
- mariadb
- couchdb
- redis
# ===================================
# if you want to develop locally,
# uncomment the four lines below, making sure to run:
# export XGDS_WORKING_DIRECTORY=/path/to/xgds
# ===================================
volumes:
- ${XGDS_WORKING_DIRECTORY}:/root/xgds_subsea
- subsea-usr-local:/usr/local
# ===================================
# use this command for debugging; this
# will bypass the startup.sh script
# ===================================
# command: tail -f /dev/null
mariadb:
container_name: docker-compose-mariadb
image: mariadb:latest
restart: always
hostname: mariadb
ports:
- "127.0.0.1:3306:3306"
environment:
MYSQL_ROOT_PASSWORD: xgds
entrypoint:
sh -c "
echo 'CREATE DATABASE IF NOT EXISTS xgds_subsea; CREATE DATABASE IF NOT EXISTS owa_subsea;' > /docker-entrypoint-initdb.d/init.sql;
/usr/local/bin/docker-entrypoint.sh --character-set-server=latin1 --collation-server=latin1_general_ci"
volumes:
- mariadb-data:/var/lib/mysql
nginx:
container_name: docker-compose-nginx
build: ./nginx
hostname: nginx
ports:
- "127.0.0.1:80:80"
- "127.0.0.1:443:443"
depends_on:
- xgds
- geoserver
- owa
geoserver:
container_name: docker-compose-geoserver
build: ./geoserver
hostname: geoserver
volumes:
- geoserver-data:/usr/share/geoserver/data_dir
ports:
- "127.0.0.1:8080:8080"
restart: on-failure
owa:
container_name: docker-compose-owa
build:
context: ./owa
dockerfile: Dockerfile
args:
OWA_VERSION: 20190509-xgds
hostname: owa
volumes:
- owa-data:/var/www/html
logging:
driver: json-file
options:
max-size: "10m"
max-file: "5"
depends_on:
- mariadb
portainer:
container_name: docker-compose-portainer
image: portainer/portainer
# ===================================
# username: admin
# password: xgds
# ===================================
command: --admin-password '$$2y$$05$$5k0NxA4ktFHymAEnQFWoUuaPvMUmIreXw.SrKMIhtaCBf7yJnB5ya' -H unix:///var/run/docker.sock
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer-data:/data
expose:
- 9000
redis:
container_name: docker-compose-redis
image: redis:5-alpine
hostname: redis
expose:
- 6379
volumes:
- redis-data:/data
couchdb:
container_name: docker-compose-couchdb
image: couchdb:latest
hostname: couchdb
ports:
- "127.0.0.1:5984:5984"
volumes:
- type: volume
source: couchdb-data
target: /opt/couchdb/data
volume:
nocopy: false
- type: volume
source: couchdb-config
target: /opt/couchdb/etc
volume:
nocopy: false
jupyter:
expose:
- 8888
container_name: docker-compose-jupyter
image: jupyter/datascience-notebook
volumes:
- jupyter-working-directory:/home/jovyan/work
- jupyter-datasets:/home/jovyan/work/datasets
- jupyter-modules:/home/jovyan/work/modules
# ===================================
# password: xgds
# ===================================
command: "start-notebook.sh \
--NotebookApp.password=sha1:44971bfd1274:2799896a818142ee3d84dfe2e0343d44644ad067 \
--NotebookApp.base_url=/jupyter"
volumes:
jupyter-working-directory:
labels:
persistent: true
jupyter-datasets:
labels:
persistent: true
jupyter-modules:
labels:
persistent: true
couchdb-data:
labels:
persistent: true
couchdb-config:
labels:
persistent: true
redis-data:
labels:
persistent: true
geoserver-data:
labels:
persistent: true
mariadb-data:
labels:
persistent: true
portainer-data:
labels:
persistent: true
subsea-usr-local:
labels:
persistent: true
owa-data:
labels:
persistent: true