-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (31 loc) · 1.19 KB
/
docker-compose.yml
File metadata and controls
35 lines (31 loc) · 1.19 KB
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
services:
pygeoapi_stable:
image: geopython/pygeoapi:0.23.4
container_name: pygeoapi_stable
restart: unless-stopped
expose:
- "80"
# ports:
# - "5000:80"
volumes:
- ./local.config.yml:/pygeoapi/local.config.yml
- ./data:/pygeoapi/data
environment:
- SCRIPT_NAME=/stable
labels:
- "traefik.enable=true"
# Production router (HTTPS with Let's Encrypt)
- "traefik.http.routers.pygeoapi_stable.rule=Host(`${SITE_DOMAIN}`) && PathPrefix(`/stable`)"
- "traefik.http.routers.pygeoapi_stable.entrypoints=https"
- "traefik.http.routers.pygeoapi_stable.tls.certresolver=le"
- "traefik.http.routers.pygeoapi_stable.tls.options=tls_default@file"
- "traefik.http.routers.pygeoapi_stable.priority=100"
- "traefik.http.routers.pygeoapi_stable.middlewares=secure-headers@file"
# Localhost router (HTTP only)
- "traefik.http.routers.pygeoapi_stable_local.rule=Host(`localhost`) && PathPrefix(`/stable`)"
- "traefik.http.routers.pygeoapi_stable_local.entrypoints=http"
- "traefik.http.routers.pygeoapi_stable_local.priority=100"
networks:
default:
name: pygeoapi-network
external: true