ansible-role-docker_grav/templates/docker-compose.yml

27 lines
759 B
YAML

# {{ ansible_managed }}
version: '3.1'
services:
grav:
image: linuxserver/grav:{{ docker_grav_image_version }}
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Paris
volumes:
- ./robots-sitemap.txt:/app/grav-admin/robots.txt
- /data1/{{ docker_grav_service_id }}/config:/config
restart: always
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik"
- "traefik.http.routers.{{ docker_grav_service_id }}.entrypoints=web"
- "traefik.http.routers.{{ docker_grav_service_id }}.rule=Host(`{{ docker_grav_fqdn }}`)"
- "traefik.http.services.{{ docker_grav_service_id }}.loadbalancer.server.port=80"
networks:
- traefik
networks:
traefik:
external: true