65 lines
2.1 KiB
YAML
65 lines
2.1 KiB
YAML
---
|
|
services:
|
|
app:
|
|
image: copyparty/ac:1.19.20@sha256:0a0a8605062c70cb50b167769a461d32c409bb6f95145fc106ce0011222efa81
|
|
networks:
|
|
- proxy
|
|
deploy:
|
|
restart_policy:
|
|
condition: on-failure
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=3923"
|
|
- "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"
|
|
## Redirect HTTP to HTTPS
|
|
# - "traefik.http.middlewares.${STACK_NAME}-redirect.redirectscheme.scheme=https"
|
|
# - "traefik.http.middlewares.${STACK_NAME}-redirect.redirectscheme.permanent=true"
|
|
- "traefik.http.middlewares.${STACK_NAME}-allow.ipallowlist.sourcerange=${IP_ALLOWRANGE}"
|
|
- "traefik.http.middlewares.${STACK_NAME}-allow.ipallowlist.ipstrategy.depth=0"
|
|
- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-allow"
|
|
- "coop-cloud.${STACK_NAME}.version=1.1.0+1.19.20"
|
|
- "backupbot.backup=true"
|
|
- "backupbot.backup.path=/w:/cfg"
|
|
volumes:
|
|
- "data:/w"
|
|
- "config:/cfg"
|
|
secrets:
|
|
- admin_pass
|
|
- write_pass
|
|
configs:
|
|
- source: config
|
|
target: /cfg/copyparty.conf
|
|
mode: 0555
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "wget --spider -q 127.0.0.1:3923/?reset=/._"]
|
|
interval: 1m
|
|
timeout: 2s
|
|
retries: 5
|
|
start_period: 15s
|
|
stop_grace_period: 15s
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|
|
|
|
secrets:
|
|
admin_pass:
|
|
external: true
|
|
name: ${STACK_NAME}_admin_pass_${SECRET_ADMIN_PASS_VERSION}
|
|
write_pass:
|
|
external: true
|
|
name: ${STACK_NAME}_write_pass_${SECRET_WRITE_PASS_VERSION}
|
|
|
|
volumes:
|
|
data:
|
|
config:
|
|
|
|
configs:
|
|
config:
|
|
name: ${STACK_NAME}_config_${CONFIG_VERSION}
|
|
file: copyparty.conf.tmpl
|
|
template_driver: golang |