remove nextcloud stack

This commit is contained in:
Pim Kunis 2023-05-05 22:52:49 +02:00
parent 3e7b1d8116
commit 47aca0dc39
3 changed files with 0 additions and 89 deletions

View file

@ -16,4 +16,3 @@
- {role: kms, tags: kms} - {role: kms, tags: kms}
- {role: swarm_dashboard, tags: swarm_dashboard} - {role: swarm_dashboard, tags: swarm_dashboard}
- {role: shephard, tags: shephard} - {role: shephard, tags: shephard}
# - {role: nextcloud, tags: nextcloud}

View file

@ -1,73 +0,0 @@
version: '3'
networks:
traefik:
external: true
nextcloud:
services:
redis:
image: redis:5
networks:
- nextcloud
expose:
- 6379
volumes:
- type: bind
source: /mnt/data/nextcloud/redis
target: /data
deploy:
placement:
constraints:
- "node.labels.nextcloud == true"
db:
image: mariadb:10.6
networks:
- nextcloud
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
volumes:
- type: bind
source: /mnt/data/nextcloud/db
target: /var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_PASSWORD=password
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
deploy:
placement:
constraints:
- "node.labels.nextcloud == true"
app:
image: nextcloud
networks:
- traefik
- nextcloud
links:
- db
volumes:
- type: bind
source: /mnt/data/nextcloud/html
target: /var/www/html
environment:
- MYSQL_PASSWORD=password
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_HOST=db
- REDIS_HOST=redis
- REDIS_HOST_PASSWORD=
deploy:
placement:
constraints:
- "node.labels.nextcloud == true"
labels:
- traefik.enable=true
- traefik.http.routers.nextcloud.entrypoints=websecure
- traefik.http.routers.nextcloud.rule=Host(`cloud.pim.kunis.nl`)
- traefik.http.routers.nextcloud.service=nextcloud
- traefik.http.routers.nextcloud.tls=true
- traefik.http.routers.nextcloud.tls.certresolver=letsencrypt
- traefik.docker.network=traefik
- traefik.http.services.nextcloud.loadbalancer.server.port=80

View file

@ -1,15 +0,0 @@
- name: Create working directory
file:
path: /srv/nextcloud
state: directory
- name: Copy Docker stack file
copy:
src: "{{ role_path }}/docker-stack.yml"
dest: /srv/nextcloud/docker-stack.yml
- name: Deploy Docker stack
docker_stack:
name: nextcloud
compose:
- /srv/nextcloud/docker-stack.yml