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

23 lines
707 B
Docker

# DOMAIN=example.com docker stack deploy -c grav.yml grav
services:
web:
image: ethibox/grav:${VERSION:-latest}
volumes:
- ${VOLUME_PATH}grav:/var/www/html
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.grav-${NUMBER:-1}.rule=Host(`${DOMAIN:-grav.localhost}`)
- traefik.http.routers.grav-${NUMBER:-1}.entrypoints=${SCHEME:-https}
- traefik.http.routers.grav-${NUMBER:-1}.service=grav-${NUMBER:-1}
- traefik.http.routers.grav-${NUMBER:-1}.tls.certresolver=letsencrypt
- traefik.http.services.grav-${NUMBER:-1}.loadbalancer.server.port=80
volumes:
grav:
networks:
default:
external: true
name: traefik-net