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

28 lines
759 B
YAML
Raw Normal View History

2022-04-29 15:31:33 +02:00
# {{ ansible_managed }}
version: '3.1'
services:
grav:
image: linuxserver/grav:{{ docker_grav_image_version }}
2022-04-29 15:31:33 +02:00
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Paris
volumes:
- ./robots-sitemap.txt:/app/grav-admin/robots.txt
2022-04-29 15:31:33 +02:00
- /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 }}`)"
2022-04-29 15:31:33 +02:00
- "traefik.http.services.{{ docker_grav_service_id }}.loadbalancer.server.port=80"
networks:
- traefik
networks:
traefik:
external: true