2020-09-03 11:42:35 +02:00
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
nextcloud:
|
2021-11-24 10:42:52 +01:00
|
|
|
name: ${NEXTCLOUD_VOLUME_NAME:-nextcloud}
|
2020-09-03 11:42:35 +02:00
|
|
|
|
|
|
|
services:
|
2021-02-22 09:58:58 +01:00
|
|
|
nextcloud-fpm:
|
2021-11-24 10:42:52 +01:00
|
|
|
container_name: ${NEXTCLOUD_CONTAINER_NAME:-nextcloud}-fpm
|
2022-02-14 10:31:18 +01:00
|
|
|
image: ${NEXTCLOUD_IMAGE:-nextcloud:23.0.0-fpm-alpine@sha256:b02448c82a7fec3d1d0aacbeab466707929a9acbe7c069db4dca14166878ceb1}
|
2020-09-03 11:42:35 +02:00
|
|
|
restart: always
|
|
|
|
depends_on:
|
2021-11-24 10:42:52 +01:00
|
|
|
- postgres
|
|
|
|
- redis
|
2020-09-03 11:42:35 +02:00
|
|
|
volumes:
|
|
|
|
- nextcloud:/var/www/html
|
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
environment:
|
2021-11-24 10:42:52 +01:00
|
|
|
NEXTCLOUD_TRUSTED_DOMAINS: ${NEXTCLOUD_TRUSTED_DOMAINS?err}
|
|
|
|
NEXTCLOUD_ADMIN_USER: ${NEXTCLOUD_ADMIN_USER?err}
|
|
|
|
NEXTCLOUD_ADMIN_PASSWORD: ${NEXTCLOUD_ADMIN_PASSWORD?err}
|
|
|
|
OVERWRITEPROTOCOL: ${OVERWRITEPROTOCOL:-https}
|
2021-11-24 17:15:03 +01:00
|
|
|
PHP_UPLOAD_LIMIT: ${PHP_UPLOAD_LIMIT:-512M}
|
2022-01-03 14:33:15 +01:00
|
|
|
POSTGRES_HOST: ${POSTGRES_CONTAINER_NAME:-postgres} # Default name is same as ../postgres/docker-compose.yml:8
|
2021-11-24 10:42:52 +01:00
|
|
|
POSTGRES_USER: ${POSTGRES_USER:?err}
|
|
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?err}
|
|
|
|
POSTGRES_DB: ${POSTGRES_DB:?err}
|
2022-01-03 14:33:15 +01:00
|
|
|
REDIS_HOST: ${REDIS_CONTAINER_NAME:-redis} # Default name is same as ../redis/docker-compose.yml:4
|
2021-11-24 10:42:52 +01:00
|
|
|
PUID: ${NEXTCLOUD_PUID:-1000}
|
|
|
|
PGID: ${NEXTCLOUD_PGID:-1000}
|
2020-09-03 11:42:35 +02:00
|
|
|
|
2021-11-24 10:42:52 +01:00
|
|
|
nextcloud-web:
|
|
|
|
container_name: ${NEXTCLOUD_CONTAINER_NAME:-nextcloud}-web
|
|
|
|
build: web
|
2020-09-03 11:42:35 +02:00
|
|
|
restart: always
|
|
|
|
environment:
|
2022-01-03 17:57:35 +01:00
|
|
|
NEXTCLOUD_FPM_CONTAINER_NAME: ${NEXTCLOUD_CONTAINER_NAME:-nextcloud}-fpm
|
2021-11-24 10:42:52 +01:00
|
|
|
PUID: ${NEXTCLOUD_PUID:-1000}
|
|
|
|
PGID: ${NEXTCLOUD_PGID:-1000}
|
|
|
|
depends_on:
|
|
|
|
- nextcloud-fpm
|
2021-11-24 18:00:32 +01:00
|
|
|
volumes:
|
|
|
|
- nextcloud:/var/www/html
|
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
2020-09-03 11:42:35 +02:00
|
|
|
|
|
|
|
nextcloud-cron:
|
2021-11-24 10:42:52 +01:00
|
|
|
image: ${NEXTCLOUD_IMAGE:-nextcloud:22.2.3-fpm-alpine}
|
|
|
|
container_name: ${NEXTCLOUD_CONTAINER_NAME:-nextcloud}-cron
|
2020-09-03 11:42:35 +02:00
|
|
|
restart: always
|
|
|
|
depends_on:
|
2021-02-22 09:58:58 +01:00
|
|
|
- nextcloud-web
|
2020-09-03 11:42:35 +02:00
|
|
|
entrypoint: /cron.sh
|
|
|
|
environment:
|
2021-11-24 10:42:52 +01:00
|
|
|
PUID: ${NEXTCLOUD_PUID:-1000}
|
|
|
|
PGID: ${NEXTCLOUD_PGID:-1000}
|
2021-11-24 18:00:32 +01:00
|
|
|
volumes:
|
|
|
|
- nextcloud:/var/www/html
|
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|