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

26 lines
612 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
labels:
traefik.http.routers.cloud.entrypoints: websecure
traefik.http.routers.cloud.rule: "Host(`cloud1.{{ domain_name }}`)"
traefik.http.services.cloud.loadbalancer.server.port: 80
traefik.enable: true
networks:
- proxy
restart: unless-stopped