2021-10-08 22:08:48 +02:00
|
|
|
services:
|
2024-01-03 11:38:09 +01:00
|
|
|
|
2024-01-19 15:12:18 +01:00
|
|
|
{% include 'templates/docker/services/redis.yml.j2' %}
|
2024-01-03 11:38:09 +01:00
|
|
|
|
2024-01-19 15:12:18 +01:00
|
|
|
{% include 'templates/docker/services/' + database_type + '.yml.j2' %}
|
2024-01-03 11:38:09 +01:00
|
|
|
|
2021-10-08 22:08:48 +02:00
|
|
|
application:
|
2024-01-22 18:53:35 +01:00
|
|
|
image: "nextcloud:{{nextcloud_version}}-fpm-alpine"
|
2024-01-14 12:19:00 +01:00
|
|
|
container_name: nextcloud-application
|
2024-01-12 20:57:58 +01:00
|
|
|
restart: {{docker_restart_policy}}
|
2021-10-08 22:08:48 +02:00
|
|
|
logging:
|
|
|
|
driver: journald
|
|
|
|
volumes:
|
|
|
|
- data:/var/www/html
|
|
|
|
environment:
|
2024-01-06 14:32:49 +01:00
|
|
|
MYSQL_DATABASE: "{{database_name}}"
|
2023-12-26 03:13:16 +01:00
|
|
|
MYSQL_USER: "{{database_username}}"
|
|
|
|
MYSQL_PASSWORD: "{{database_password}}"
|
|
|
|
MYSQL_HOST: {{database_host}}:3306
|
2024-01-19 15:12:18 +01:00
|
|
|
{% include 'templates/docker/container/depends-on-database-redis.yml.j2' %}
|
|
|
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
2023-12-31 11:14:18 +01:00
|
|
|
|
2021-10-08 22:08:48 +02:00
|
|
|
web:
|
|
|
|
image: nginx:alpine
|
2024-01-14 12:19:00 +01:00
|
|
|
container_name: nextcloud-web
|
2021-10-08 22:08:48 +02:00
|
|
|
logging:
|
|
|
|
driver: journald
|
2024-01-12 20:57:58 +01:00
|
|
|
restart: {{docker_restart_policy}}
|
2021-10-08 22:08:48 +02:00
|
|
|
ports:
|
|
|
|
- "127.0.0.1:{{http_port}}:80"
|
|
|
|
volumes:
|
2023-04-26 12:45:49 +02:00
|
|
|
- "{{path_docker_volumes}}nextcloud/nginx.conf:/etc/nginx/nginx.conf:ro"
|
2021-10-08 22:08:48 +02:00
|
|
|
volumes_from:
|
|
|
|
- application
|
2024-01-06 11:09:30 +01:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "curl", "-f", "http://localhost:80/"]
|
|
|
|
interval: 1m
|
|
|
|
timeout: 10s
|
|
|
|
retries: 3
|
2024-01-19 15:12:18 +01:00
|
|
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
2023-12-26 16:40:19 +01:00
|
|
|
|
2021-10-08 22:08:48 +02:00
|
|
|
cron:
|
2024-01-14 12:19:00 +01:00
|
|
|
container_name: nextcloud-cron
|
2024-01-22 18:53:35 +01:00
|
|
|
image: "nextcloud:{{nextcloud_version}}-fpm-alpine"
|
2024-01-12 20:57:58 +01:00
|
|
|
restart: {{docker_restart_policy}}
|
2021-10-08 22:08:48 +02:00
|
|
|
logging:
|
2021-11-11 14:25:19 +01:00
|
|
|
driver: journald
|
2021-10-08 22:08:48 +02:00
|
|
|
volumes:
|
|
|
|
- data:/var/www/html
|
|
|
|
entrypoint: /cron.sh
|
2024-01-19 15:12:18 +01:00
|
|
|
{% include 'templates/docker/container/depends-on-database-redis.yml.j2' %}
|
|
|
|
{% include 'templates/docker/container/networks.yml.j2' %}
|
2024-01-02 21:39:17 +01:00
|
|
|
|
2024-01-19 15:12:18 +01:00
|
|
|
{% include 'templates/docker/compose/volumes.yml.j2' %}
|
2021-10-08 22:08:48 +02:00
|
|
|
data:
|
2022-01-20 21:36:32 +01:00
|
|
|
redis:
|
2024-01-03 11:38:09 +01:00
|
|
|
|
2024-01-19 15:12:18 +01:00
|
|
|
{% include 'templates/docker/compose/networks.yml.j2' %}
|