This repository has been archived on 2020-10-01. You can view files and clone it, but cannot push or open issues or pull requests.
nextcloud.test.autonomic.zone/compose.yml

56 lines
1.4 KiB
YAML
Raw Normal View History

2020-06-26 23:43:19 +00:00
version: "3.7"
services:
nextcloud:
image: nextcloud:latest
depends_on:
- maindb
secrets:
- mysql_root_password
environment:
- MYSQL_HOST=maindb:3306
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=root
- MYSQL_ROOT_PASSWORD_FILE=/run/secrets/mysql_root_password
volumes:
- /mnt/nextcloud:/var/www/html:cached
- /mnt/nextapps:/var/www/html/custom_apps:cached
- /mnt/nextdata:/var/www/html/data:cached
- /mnt/nextconfig:/var/www/html/config:cached
networks:
- proxy
- internal
deploy:
placement:
constraints: [node.role == worker]
replicas: 1
update_config:
parallelism: 2
delay: 10s
restart_policy:
condition: on-failure
labels:
- "traefik.enable=true"
- "traefik.docker.network=proxy"
- "traefik.http.routers.nextcloud.tls=true"
- "traefik.http.routers.nextcloud.entrypoints=websecure"
- "traefik.http.services.nextcloud.loadbalancer.server.port=80"
- "traefik.http.routers.invoiceninja.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.invoiceninja.tls.certresolver=${LETS_ENCRYPT_ENV}"
secrets:
mysql_root_password:
external: true
volumes:
nextcloud:
nextapps:
nextdata:
nextconfig:
networks:
proxy:
external: true
private:
external: true