forked from thinkWhere/GeoServer-Docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (56 loc) · 1.52 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
version: '2'
services:
nginx:
container_name: nginx_loadbalance
restart: always
image: nginx
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "10"
ports:
- "80:8080"
volumes:
- ~/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
links:
- geoserver_8085
- geoserver_8086
geoserver_8085:
container_name: geoserver_8085
restart: always
image: thinkwhere/geoserver:2.12
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "10"
hostname: geoserver_8085
ports:
- "8085:8080"
environment:
- GEOSERVER_LOG_LOCATION=/opt/geoserver/data_dir/logs/geoserver_8085.log
volumes:
- ~/geoserver_data:/opt/geoserver/data_dir
- ~/tomcat_settings/setenv.sh:/usr/local/tomcat/bin/setenv.sh
- ~/tomcat_settings/logs_8085:/usr/local/tomcat/logs
- ~/Rasters:/root/Rasters
geoserver_8086:
container_name: geoserver_8086
restart: always
image: thinkwhere/geoserver:2.12
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "10"
hostname: geoserver_8086
ports:
- "8086:8080"
environment:
- GEOSERVER_LOG_LOCATION=/opt/geoserver/data_dir/logs/geoserver_8086.log
volumes:
- ~/geoserver_data:/opt/geoserver/data_dir
- ~/tomcat_settings/setenv.sh:/usr/local/tomcat/bin/setenv.sh
- ~/tomcat_settings/logs_8086:/usr/local/tomcat/logs
- ~/Rasters:/root/Rasters