Initial import

This commit is contained in:
c v t 2020-06-27 01:43:19 +02:00
commit 3d13a69884
1 changed files with 55 additions and 0 deletions

55
compose.yml Normal file
View File

@ -0,0 +1,55 @@
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