Skip to content

Commit

Permalink
Uncommented new Docker service (does not work yet) [#52]
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoSander committed Mar 16, 2023
1 parent 73fb7dd commit 29aa2de
Showing 1 changed file with 37 additions and 37 deletions.
74 changes: 37 additions & 37 deletions services/pygeoapi/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,43 +41,43 @@ services:
- "traefik.http.routers.${SERVICE_NAME}_http.rule=Host(`localhost`) && PathPrefix(`${SERVICE_PATH}`)"
- "traefik.http.routers.${SERVICE_NAME}_http.entrypoints=http"

adr_pygeoapi:

image: ${DOCKER_IMAGE}

container_name: ${SERVICE_NAME_ADR}

expose:
- "80"

# ports:
# - "5000:80"

environment:
# Specific to Flask apps
- SCRIPT_NAME=${SERVICE_PATH_ADR}

volumes:
# Map data and config into pygeoapi container
- ./local.config.yml:/pygeoapi/local.config.adr.yml
- ./data:/pygeoapi/data

labels:
# Enable Traefik routing on overlay service network
- "traefik.enable=true"
- "traefik.docker.network=service-network"

# Define SSL/https router
- "traefik.http.routers.${SERVICE_NAME}_https.rule=Host(`${TRAEFIK_SSL_DOMAIN}`) && PathPrefix(`${SERVICE_PATH_ADR}`)"
- "traefik.http.routers.${SERVICE_NAME}_https.entrypoints=https"
- "traefik.http.routers.${SERVICE_NAME}_https.tls=${TRAEFIK_USE_TLS}"
- "traefik.http.routers.${SERVICE_NAME}_https.tls.certresolver=${TRAEFIK_SSL_CERT_RESOLVER}"
- "traefik.http.routers.${SERVICE_NAME}_https.tls.options=my_default@file"
- "traefik.http.routers.${SERVICE_NAME}_https.middlewares=secure-headers@file"

# Define local http router
- "traefik.http.routers.${SERVICE_NAME}_http.rule=Host(`localhost`) && PathPrefix(`${SERVICE_PATH_ADR}`)"
- "traefik.http.routers.${SERVICE_NAME}_http.entrypoints=http"
# adr_pygeoapi:
#
# image: ${DOCKER_IMAGE}
#
# container_name: ${SERVICE_NAME_ADR}
#
# expose:
# - "80"
#
# # ports:
# # - "5000:80"
#
# environment:
# # Specific to Flask apps
# - SCRIPT_NAME=${SERVICE_PATH_ADR}
#
# volumes:
# # Map data and config into pygeoapi container
# - ./local.config.yml:/pygeoapi/local.config.adr.yml
# - ./data:/pygeoapi/data
#
# labels:
# # Enable Traefik routing on overlay service network
# - "traefik.enable=true"
# - "traefik.docker.network=service-network"
#
# # Define SSL/https router
# - "traefik.http.routers.${SERVICE_NAME}_https.rule=Host(`${TRAEFIK_SSL_DOMAIN}`) && PathPrefix(`${SERVICE_PATH_ADR}`)"
# - "traefik.http.routers.${SERVICE_NAME}_https.entrypoints=https"
# - "traefik.http.routers.${SERVICE_NAME}_https.tls=${TRAEFIK_USE_TLS}"
# - "traefik.http.routers.${SERVICE_NAME}_https.tls.certresolver=${TRAEFIK_SSL_CERT_RESOLVER}"
# - "traefik.http.routers.${SERVICE_NAME}_https.tls.options=my_default@file"
# - "traefik.http.routers.${SERVICE_NAME}_https.middlewares=secure-headers@file"
#
# # Define local http router
# - "traefik.http.routers.${SERVICE_NAME}_http.rule=Host(`localhost`) && PathPrefix(`${SERVICE_PATH_ADR}`)"
# - "traefik.http.routers.${SERVICE_NAME}_http.entrypoints=http"

networks:
default:
Expand Down

0 comments on commit 29aa2de

Please sign in to comment.