2022-02-03 20:21:52 +01:00
|
|
|
services:
|
|
|
|
nextcloud-cache:
|
|
|
|
image: redis
|
|
|
|
container_name: nextcloud-cache
|
2022-02-09 19:14:45 +01:00
|
|
|
user: ${PUID}:${PGID}
|
2022-02-03 20:21:52 +01:00
|
|
|
networks:
|
|
|
|
- nextcloud
|
2022-02-11 22:51:02 +01:00
|
|
|
volumes:
|
|
|
|
- ${APPS_DIR}/nextcloud-cache:/data
|
2022-02-03 20:21:52 +01:00
|
|
|
ports:
|
|
|
|
- 6379:6379
|
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
nextcloud-db:
|
|
|
|
image: lscr.io/linuxserver/mariadb
|
|
|
|
container_name: nextcloud-db
|
|
|
|
networks:
|
|
|
|
- nextcloud
|
|
|
|
environment:
|
2022-02-09 19:14:45 +01:00
|
|
|
- PUID=${PUID}
|
|
|
|
- PGID=${PGID}
|
2022-02-03 20:21:52 +01:00
|
|
|
- MYSQL_ROOT_PASSWORD=${DB_ROOT_PW}
|
|
|
|
- TZ=${TIMEZONE}
|
|
|
|
- MYSQL_DATABASE=${DB_NAME}
|
|
|
|
- MYSQL_USER=${DB_USER}
|
|
|
|
- MYSQL_PASSWORD=${DB_PW}
|
|
|
|
volumes:
|
|
|
|
- ${APPS_DIR}/nextcloud-db:/config
|
|
|
|
ports:
|
|
|
|
- 3306:3306
|
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
nextcloud:
|
|
|
|
image: lscr.io/linuxserver/nextcloud
|
|
|
|
container_name: nextcloud
|
|
|
|
networks:
|
|
|
|
- proxy
|
|
|
|
- nextcloud
|
|
|
|
environment:
|
|
|
|
- PUID=${PUID}
|
|
|
|
- PGID=${PGID}
|
|
|
|
- TZ=${TIMEZONE}
|
|
|
|
volumes:
|
|
|
|
- ${APPS_DIR}/nextcloud:/config
|
|
|
|
- ${DATA_DIR}/nextcloud-data:/data
|
|
|
|
ports:
|
|
|
|
- 8443:443
|
|
|
|
restart: unless-stopped
|
|
|
|
depends_on:
|
|
|
|
- nextcloud-db
|
|
|
|
- nextcloud-cache
|
|
|
|
|
|
|
|
networks:
|
|
|
|
proxy:
|
|
|
|
external:
|
|
|
|
name: proxy
|
|
|
|
nextcloud:
|
|
|
|
name: nextcloud
|