Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 42 additions & 42 deletions docker-compose-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ services:
environment:
POSTGRES_PASSWORD: '' # TODO: Set your postgres password here!
volumes:
- ./volumes/db:/var/lib/postgresql/docker
- ./volumes/db:/var/lib/postgresql/docker:z
# NOTE: Remove this line if you don't want/need the demo data
- ./volumes/demo-data/setup-demo-data.sh:/docker-entrypoint-initdb.d/2_setup-demo-data.sh
- ./volumes/demo-data/setup-demo-data.sh:/docker-entrypoint-initdb.d/2_setup-demo-data.sh:z
ports:
- "127.0.0.1:5439:5432"
healthcheck:
Expand All @@ -32,9 +32,9 @@ services:
qwc-config-db-migrate:
image: sourcepole/qwc-base-db-migrate:latest-2025-lts
volumes:
- ./pg_service.conf:/tmp/pg_service.conf:ro
- ./pg_service.conf:/tmp/pg_service.conf:ro,z
# NOTE: Remove this line if you don't want/need the demo data
- ./volumes/demo-data/setup-demo-data-permissions.sh:/tmp/extra-init.d/setup-demo-data-permissions.sh
- ./volumes/demo-data/setup-demo-data-permissions.sh:/tmp/extra-init.d/setup-demo-data-permissions.sh:z

qwc-qgis-server:
image: sourcepole/qwc-qgis-server:3.40
Expand Down Expand Up @@ -65,13 +65,13 @@ services:
# ports:
# - "127.0.0.1:5010:9090"
volumes:
- ./volumes/config-in:/srv/qwc_service/config-in:ro
- ./volumes/config:/srv/qwc_service/config-out
- ./volumes/qwc2:/qwc2
- ./volumes/qgs-resources:/data
- ./volumes/print-layouts:/layouts:ro
- ./volumes/reports:/reports
- ./pg_service.conf:/srv/pg_service.conf:ro
- ./volumes/config-in:/srv/qwc_service/config-in:ro,z
- ./volumes/config:/srv/qwc_service/config-out:z
- ./volumes/qwc2:/qwc2:z
- ./volumes/qgs-resources:/data:z
- ./volumes/print-layouts:/layouts:ro,z
- ./volumes/reports:/reports:z
- ./pg_service.conf:/srv/pg_service.conf:ro,z

qwc-admin-gui:
image: sourcepole/qwc-admin-gui:latest-2025-lts
Expand All @@ -88,8 +88,8 @@ services:
MAIL_SUPPRESS_SEND: 'True'
MAIL_DEFAULT_SENDER: 'from@example.com'
volumes:
- ./pg_service.conf:/srv/pg_service.conf:ro
- ./volumes/config:/srv/qwc_service/config:ro
- ./pg_service.conf:/srv/pg_service.conf:ro,z
- ./volumes/config:/srv/qwc_service/config:ro,z
# required by themes plugin:
# - ./volumes/config-in:/srv/qwc_service/config-in:rw
# - ./volumes/qwc2:/qwc2
Expand All @@ -113,8 +113,8 @@ services:
# MAIL_PASSWORD: 'password1234'
# MAIL_USE_SSL: 'True'
volumes:
- ./pg_service.conf:/srv/pg_service.conf:ro
- ./volumes/config:/srv/qwc_service/config:ro
- ./pg_service.conf:/srv/pg_service.conf:ro,z
- ./volumes/config:/srv/qwc_service/config:ro,z

qwc-data-service:
image: sourcepole/qwc-data-service:latest-2025-lts
Expand All @@ -124,9 +124,9 @@ services:
ATTACHMENTS_BASE_DIR: '/attachments'
MAX_ATTACHMENT_FILE_SIZE: 1048576
volumes:
- ./volumes/config:/srv/qwc_service/config:ro
- ./volumes/attachments:/attachments
- ./pg_service.conf:/srv/pg_service.conf:ro
- ./volumes/config:/srv/qwc_service/config:ro,z
- ./volumes/attachments:/attachments:z
- ./pg_service.conf:/srv/pg_service.conf:ro,z
# NOTE: you can mount a pg_service-write.conf with R/W DB users and have R/O DB users in the main pg_service.conf
# - ./pg_service-write.conf:/srv/pg_service.conf:ro

Expand All @@ -140,37 +140,37 @@ services:
<<: *qwc-service-variables
SERVICE_MOUNTPOINT: '/api/v1/document'
volumes:
- ./pg_service.conf:/srv/pg_service.conf:ro
- ./volumes/reports:/reports
- ./volumes/reports/fonts:/srv/qwc_service/fonts
- ./volumes/config:/srv/qwc_service/config:ro
- ./pg_service.conf:/srv/pg_service.conf:ro,z
- ./volumes/reports:/reports:z
- ./volumes/reports/fonts:/srv/qwc_service/fonts:z
- ./volumes/config:/srv/qwc_service/config:ro,z

qwc-elevation-service:
image: sourcepole/qwc-elevation-service:latest-2025-lts
environment:
<<: *qwc-service-variables
SERVICE_MOUNTPOINT: '/api/v1/elevation'
volumes:
- ./volumes/config:/srv/qwc_service/config:ro
- ./volumes/config:/srv/qwc_service/config:ro,z

qwc-feature-info-service:
image: sourcepole/qwc-feature-info-service:latest-2025-lts
environment:
<<: *qwc-service-variables
SERVICE_MOUNTPOINT: '/api/v1/featureinfo'
volumes:
- ./pg_service.conf:/srv/pg_service.conf:ro
- ./volumes/config:/srv/qwc_service/config:ro
- ./volumes/info-templates:/info_templates:ro
- ./pg_service.conf:/srv/pg_service.conf:ro,z
- ./volumes/config:/srv/qwc_service/config:ro,z
- ./volumes/info-templates:/info_templates:ro,z

qwc-fulltext-search-service:
image: sourcepole/qwc-fulltext-search-service:latest-2025-lts
environment:
<<: *qwc-service-variables
SERVICE_MOUNTPOINT: '/api/v2/search'
volumes:
- ./pg_service.conf:/srv/pg_service.conf:ro
- ./volumes/config:/srv/qwc_service/config:ro
- ./pg_service.conf:/srv/pg_service.conf:ro,z
- ./volumes/config:/srv/qwc_service/config:ro,z

qwc-solr:
image: solr:8.11-slim
Expand All @@ -182,10 +182,10 @@ services:
ports:
- "127.0.0.1:8983:8983"
volumes:
- ./volumes/solr/configsets/gdi:/gdi_conf:ro
- ./volumes/solr/configsets/gdi:/gdi_conf:ro,z
# Configuration is copied once from /gdi_conf/ to /var/solr/data/
# Change ownership to solr user with `sudo chown 8983:8983 volumes/solr/data`
- ./volumes/solr/data:/var/solr/data
- ./volumes/solr/data:/var/solr/data:z
# Protect admin GUI and admin API with Basic auth
# Change "#credentials" to "credentials" in security.json for adding a user 'solr' with password 'SolrRocks'
#- ./volumes/solr/security.json:/var/solr/data/security.json:ro
Expand All @@ -196,17 +196,17 @@ services:
<<: *qwc-service-variables
SERVICE_MOUNTPOINT: '/api/v1/legend'
volumes:
- ./volumes/config:/srv/qwc_service/config:ro
- ./volumes/legends:/legends
- ./volumes/config:/srv/qwc_service/config:ro,z
- ./volumes/legends:/legends:z

qwc-mapinfo-service:
image: sourcepole/qwc-mapinfo-service:latest-2025-lts
environment:
<<: *qwc-service-variables
SERVICE_MOUNTPOINT: '/api/v1/mapinfo'
volumes:
- ./pg_service.conf:/srv/pg_service.conf:ro
- ./volumes/config:/srv/qwc_service/config:ro
- ./pg_service.conf:/srv/pg_service.conf:ro,z
- ./volumes/config:/srv/qwc_service/config:ro,z

qwc-map-viewer:
# Stock qwc2 app
Expand All @@ -217,10 +217,10 @@ services:
<<: *qwc-service-variables
SERVICE_MOUNTPOINT: '/'
volumes:
- ./pg_service.conf:/srv/pg_service.conf:ro
- ./volumes/config:/srv/qwc_service/config:ro
- ./pg_service.conf:/srv/pg_service.conf:ro,z
- ./volumes/config:/srv/qwc_service/config:ro,z
# When using qwc-map-viewer:
- ./volumes/qwc2/assets:/qwc2/assets:ro
- ./volumes/qwc2/assets:/qwc2/assets:ro,z
# When using own viewer build with qwc-map-viewer-base:
#- ./volumes/qwc2:/qwc2:ro

Expand All @@ -230,24 +230,24 @@ services:
<<: *qwc-service-variables
SERVICE_MOUNTPOINT: '/ows'
volumes:
- ./volumes/config:/srv/qwc_service/config:ro
- ./volumes/config:/srv/qwc_service/config:ro,z

qwc-permalink-service:
image: sourcepole/qwc-permalink-service:latest-2025-lts
environment:
<<: *qwc-service-variables
SERVICE_MOUNTPOINT: '/api/v1/permalink'
volumes:
- ./pg_service.conf:/srv/pg_service.conf:ro
- ./volumes/config:/srv/qwc_service/config:ro
- ./pg_service.conf:/srv/pg_service.conf:ro,z
- ./volumes/config:/srv/qwc_service/config:ro,z

qwc-print-service:
image: sourcepole/qwc-print-service:latest-2025-lts
environment:
<<: *qwc-service-variables
SERVICE_MOUNTPOINT: '/api/v1/print'
volumes:
- ./volumes/config:/srv/qwc_service/config:ro
- ./volumes/config:/srv/qwc_service/config:ro,z

# qwc-registration-gui:
# image: sourcepole/qwc-registration-gui:latest-2025-lts
Expand All @@ -267,7 +267,7 @@ services:
# NOTE: The port the qwc application runs on. You can choose another port instead of 8088.
- "8088:80"
volumes:
- ./api-gateway/nginx.conf:/etc/nginx/conf.d/default.conf:ro
- ./api-gateway/nginx.conf:/etc/nginx/conf.d/default.conf:ro,z
depends_on:
- qwc-postgis
- qwc-qgis-server
Expand Down
Loading