awesome-stacks/stacks/ethercalc.yml
2024-10-07 01:24:30 +02:00

34 lines
963 B
Docker

# DOMAIN=example.com docker stack deploy -c ethercalc ethercalc
services:
web:
image: audreyt/ethercalc:${VERSION:-latest}
environment:
- REDIS_PORT_6379_TCP_ADDR=redis
- REDIS_PORT_6379_TCP_PORT=6379
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.ethercalc-${NUMBER:-1}.rule=Host(`${DOMAIN:-ethercalc.localhost}`)
- traefik.http.routers.ethercalc-${NUMBER:-1}.entrypoints=${SCHEME:-https}
- traefik.http.routers.ethercalc-${NUMBER:-1}.service=ethercalc-${NUMBER:-1}
- traefik.http.routers.ethercalc-${NUMBER:-1}.tls.certresolver=letsencrypt
- traefik.http.services.ethercalc-${NUMBER:-1}.loadbalancer.server.port=8000
redis:
image: redis:6-alpine
volumes:
- ${VOLUME_PATH}redis:/data
networks:
- internal
volumes:
redis:
networks:
internal:
driver: overlay
attachable: true
default:
external: true
name: traefik-net