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

31 lines
786 B
Plaintext
Raw Normal View History

2021-04-27 01:31:53 +02:00
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
2021-04-27 01:31:53 +02:00
labels:
traefik.http.routers.cloud.entrypoints: websecure
2021-05-25 16:40:34 +02:00
traefik.http.routers.cloud.rule: "Host(`cloud.{{ domain_name }}`)"
2021-04-27 01:31:53 +02:00
traefik.http.services.cloud.loadbalancer.server.port: 80
traefik.enable: true
environment:
OVERWRITECLIURL: https://cloud.chosto.me
OVERWRITEPROTOCOL: https
2021-04-27 01:31:53 +02:00
networks:
- proxy
restart: unless-stopped