2021-10-21 08:19:19 +02:00
|
|
|
version: '3'
|
2021-10-08 22:08:48 +02:00
|
|
|
|
|
|
|
services:
|
|
|
|
application:
|
2023-12-13 15:16:02 +01:00
|
|
|
image: "nextcloud:{{version_nextcloud}}-fpm-alpine"
|
2021-10-08 22:08:48 +02:00
|
|
|
restart: always
|
|
|
|
logging:
|
|
|
|
driver: journald
|
|
|
|
volumes:
|
|
|
|
- data:/var/www/html
|
|
|
|
environment:
|
2023-12-26 03:13:16 +01:00
|
|
|
MYSQL_DATABASE: "{{database_databasename}}"
|
|
|
|
MYSQL_USER: "{{database_username}}"
|
|
|
|
MYSQL_PASSWORD: "{{database_password}}"
|
|
|
|
MYSQL_HOST: {{database_host}}:3306
|
2024-01-02 12:23:25 +01:00
|
|
|
{% if not enable_central_database %}
|
2023-12-31 11:14:18 +01:00
|
|
|
depends_on:
|
|
|
|
- database
|
|
|
|
|
2024-01-02 21:13:34 +01:00
|
|
|
{% include 'templates/docker-{{ database_type }}-service.yml.j2' %}
|
2023-12-31 11:14:18 +01:00
|
|
|
{% endif %}
|
|
|
|
|
2021-10-08 22:08:48 +02:00
|
|
|
web:
|
|
|
|
image: nginx:alpine
|
|
|
|
logging:
|
|
|
|
driver: journald
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:{{http_port}}:80"
|
|
|
|
depends_on:
|
|
|
|
- application
|
|
|
|
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
|
2023-12-26 16:40:19 +01:00
|
|
|
|
|
|
|
{% include 'templates/docker-redis-service.yml.j2' %}
|
|
|
|
|
2021-10-08 22:08:48 +02:00
|
|
|
cron:
|
2023-12-13 15:16:02 +01:00
|
|
|
image: "nextcloud:{{version_nextcloud}}-fpm-alpine"
|
2021-10-08 22:08:48 +02:00
|
|
|
restart: always
|
|
|
|
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-02 21:13:34 +01:00
|
|
|
{% include 'templates/docker-depends-on-central-database.yml.j2' %}
|
|
|
|
redis:
|
2021-10-08 22:08:48 +02:00
|
|
|
volumes:
|
2024-01-02 21:13:34 +01:00
|
|
|
{% include 'templates/docker-database-volume.yml.j2' %}
|
2021-10-08 22:08:48 +02:00
|
|
|
data:
|
2022-01-20 21:36:32 +01:00
|
|
|
redis:
|