ansible/roles/nextcloud/templates/docker-compose.yml.j2

28 lines
691 B
Django/Jinja

version: "{{ compose_version }}"
networks:
proxy:
name: "{{ traefik_network }}"
volumes:
nextcloud:
name: nextcloud
services:
# Will use SQLite as this is a small instance
nextcloud:
image: "nextcloud:{{ nextcloud_version }}"
container_name: nextcloud
volumes:
- nextcloud:/var/www/html
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
labels:
traefik.http.routers.cloud.entrypoints: websecure
traefik.http.routers.cloud.rule: "Host(`cloud.{{ domain_name }}`)"
traefik.http.services.cloud.loadbalancer.server.port: 80
traefik.enable: true
networks:
- proxy
restart: unless-stopped