voila/compose.yml

57 lines
1.5 KiB
YAML
Raw Permalink Normal View History

2023-01-04 23:33:48 +00:00
---
version: "3.8"
services:
app:
2023-01-05 00:07:49 +00:00
image: python:3.10
environment:
- VOILA_VERSION
2023-01-05 05:52:43 +00:00
- IPYTHON_VERSION
- NOTEBOOK_VERSION
2023-01-05 00:07:49 +00:00
- VOILA_DIRECTORY
- VOILA_OPTIONS
- REQUIREMENTS_PATH
volumes:
- data:/data
working_dir: /data
configs:
- source: startup_sh
target: /startup.sh
mode: 0755
2023-01-04 23:33:48 +00:00
networks:
- proxy
2023-01-05 00:07:49 +00:00
command: /startup.sh
2023-01-04 23:33:48 +00:00
deploy:
restart_policy:
condition: on-failure
labels:
- "traefik.enable=true"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
## Redirect from EXTRA_DOMAINS to DOMAIN
#- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
- "coop-cloud.${STACK_NAME}.version="
2023-01-05 00:07:49 +00:00
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost"]
# interval: 30s
# timeout: 10s
# retries: 10
# start_period: 1m
2023-01-04 23:33:48 +00:00
networks:
proxy:
external: true
2023-01-05 00:07:49 +00:00
configs:
startup_sh:
2023-01-05 04:46:23 +00:00
name: ${STACK_NAME}_startup_sh_${STARTUP_SH_VERSION}
2023-01-05 00:07:49 +00:00
file: startup.sh
2023-01-05 04:48:44 +00:00
volumes:
data: