generated from coop-cloud/example
88 lines
2.7 KiB
YAML
88 lines
2.7 KiB
YAML
---
|
|
services:
|
|
app:
|
|
image: ghcr.io/local-resilience-tech/lores-node:v0.23.0
|
|
networks:
|
|
- proxy
|
|
- internal
|
|
environment:
|
|
DATA_DIR: "/data"
|
|
CONFIG_PATH: "/data/config.toml"
|
|
DOCKER_HOST: "tcp://socket-proxy:2375"
|
|
volumes:
|
|
- data:/data
|
|
deploy:
|
|
restart_policy:
|
|
condition: on-failure
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=8200"
|
|
- "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}"
|
|
- "traefik.udp.routers.${STACK_NAME}-p2panda-udp-v4.entrypoints=p2panda-udp-v4"
|
|
- "traefik.udp.services.${STACK_NAME}-p2panda-udp-v4.loadbalancer.server.port=2022"
|
|
- "traefik.udp.routers.${STACK_NAME}-p2panda-udp-v6.entrypoints=p2panda-udp-v6"
|
|
- "traefik.udp.services.${STACK_NAME}-p2panda-udp-v6.loadbalancer.server.port=2023"
|
|
## Redirect from EXTRA_DOMAINS to DOMAIN
|
|
#- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
|
|
## Redirect HTTP to HTTPS
|
|
# - "traefik.http.middlewares.${STACK_NAME}-redirect.redirectscheme.scheme=https"
|
|
# - "traefik.http.middlewares.${STACK_NAME}-redirect.redirectscheme.permanent=true"
|
|
## When you're ready for release, run "abra recipe sync <name>" to set this
|
|
- "coop-cloud.${STACK_NAME}.version=0.8.0+v0.23.0"
|
|
## Enable backups: https://docs.coopcloud.tech/maintainers/handbook/#how-do-i-configure-backuprestore
|
|
# - "backupbot.backup=true"
|
|
# - "backupbot.backup.path=/some/path"
|
|
# healthcheck:
|
|
# test: ["CMD", "curl", "-f", "http://localhost"]
|
|
# interval: 30s
|
|
# timeout: 10s
|
|
# retries: 10
|
|
# start_period: 1m
|
|
|
|
socket-proxy:
|
|
image: lscr.io/linuxserver/socket-proxy:3.2.19-r0-ls82
|
|
deploy:
|
|
endpoint_mode: dnsrr
|
|
environment:
|
|
- ALLOW_START=0
|
|
- ALLOW_STOP=0
|
|
- ALLOW_RESTARTS=0
|
|
- AUTH=0
|
|
- BUILD=0
|
|
- COMMIT=0
|
|
- CONFIGS=0
|
|
- CONTAINERS=0
|
|
- DISABLE_IPV6=0
|
|
- DISTRIBUTION=0
|
|
- EVENTS=0
|
|
- EXEC=0
|
|
- IMAGES=0
|
|
- INFO=0
|
|
- NETWORKS=0
|
|
- NODES=1
|
|
- PING=1
|
|
- POST=0
|
|
- PLUGINS=0
|
|
- SECRETS=0
|
|
- SERVICES=1 # Needs access
|
|
- SESSION=0
|
|
- SWARM=1
|
|
- SYSTEM=0
|
|
- TASKS=0
|
|
- VERSION=0
|
|
- VOLUMES=0
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
networks:
|
|
- internal
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|
|
internal:
|
|
external: false
|
|
volumes:
|
|
data:
|