-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (40 loc) · 1.41 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
version: '3'
services:
geoserver-lightning:
image: meteofi/geoserver:2.20
container_name: geoserver-lightning
restart: unless-stopped
environment:
GEOSERVER_CSRF_WHITELIST: wms.lightning.${APPDOMAIN:-local}
GEOSERVER_WMS_TITLE: "Meteo.FI Lightning WMS"
GEOSERVER_WORKSPACE: lightning
GEOSERVER_DATASTORE_DB: lightning
GEOSERVER_DATASTORE_DB_USER: ${DB_USER:-geoserver}
GEOSERVER_DATASTORE_DB_PASSWORD: ${DB_PASSWORD:-geoserver}
GEOSERVER_DATASTORE_DB_HOST: geoserver-lightning-db
labels:
- "traefik.http.routers.geoserver-lightning.entrypoints=websecure"
- "traefik.http.routers.geoserver-lightning.rule=Host(`lightning.${APPDOMAIN:-local}`)"
- "traefik.http.services.geoserver-lightning.loadbalancer.server.port=8080"
volumes:
- geoserver-lightning-storage:/data/geoserver
networks:
- traefik-network
geoserver-lightning-db:
image: postgis/postgis:10-3.2
container_name: geoserver-lightning-db
restart: unless-stopped
environment:
POSTGRES_DB: lightning
POSTGRES_USER: ${DB_USER:-geoserver}
POSTGRES_PASSWORD: ${DB_PASSWORD:-geoserver}
volumes:
- geoserver-lightning-db-storage:/var/lib/postgresql/data
networks:
- traefik-network
volumes:
geoserver-lightning-storage:
geoserver-lightning-db-storage:
networks:
traefik-network:
external: true