ansible-infra/playbooks/templates/chaosknoten/configs/cloud/compose.yaml.j2

46 lines
1.3 KiB
Plaintext
Raw Normal View History

---
version: "3.6"
services:
database:
image: docker.io/library/mariadb:11
restart: always
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
volumes:
2023-08-05 18:59:58 +02:00
- /data/docker/volumes/database:/var/lib/mysql
environment:
2023-08-05 18:59:58 +02:00
- "MYSQL_ROOT_PASSWORD={{ lookup("community.general.passwordstore", "noc/vm-secrets/chaosknoten/cloud/DB_PASSWORD", create=false, missing="error") }}"
- "MYSQL_PASSWORD={{ lookup("community.general.passwordstore", "noc/vm-secrets/chaosknoten/cloud/DB_PASSWORD", create=false, missing="error") }}"
- "MYSQL_DATABASE=nextcloud"
- "MYSQL_USER=nextcloud"
2023-08-05 18:59:58 +02:00
networks:
backend: {}
app:
image: docker.io/library/nextcloud:25-fpm
restart: always
ports:
2023-08-05 18:59:58 +02:00
- 9000:9000
links:
2023-08-05 18:59:58 +02:00
- database
volumes:
2023-08-05 18:59:58 +02:00
- /data/docker/volumes/nextcloud:/var/www/html
environment:
- "MYSQL_PASSWORD={{ lookup("community.general.passwordstore", "noc/vm-secrets/chaosknoten/cloud/DB_PASSWORD", create=false, missing="error") }}"
- "MYSQL_DATABASE=nextcloud"
- "MYSQL_USER=nextcloud"
2023-08-05 18:59:58 +02:00
- "MYSQL_HOST=database"
networks:
backend: {}
frontend: {}
2023-08-05 18:59:58 +02:00
volumes: {}
# FIXME: tell Docker to put volumes in /data instead of /var/lib/docker/
2023-08-05 18:59:58 +02:00
#database: {}
#nextcloud: {}
networks:
backend:
internal: true
frontend: {}