mirror of
https://github.com/mr-vercetti/homeserver.git
synced 2025-01-18 16:25:35 +01:00
59 lines
1.3 KiB
YAML
59 lines
1.3 KiB
YAML
services:
|
|
nextcloud-cache:
|
|
image: redis
|
|
container_name: nextcloud-cache
|
|
user: ${PUID}:${PGID}
|
|
networks:
|
|
- nextcloud
|
|
volumes:
|
|
- ${APPS_DIR}/nextcloud-cache:/data
|
|
ports:
|
|
- 6379:6379
|
|
restart: unless-stopped
|
|
|
|
nextcloud-db:
|
|
image: lscr.io/linuxserver/mariadb
|
|
container_name: nextcloud-db
|
|
networks:
|
|
- nextcloud
|
|
environment:
|
|
- PUID=${PUID}
|
|
- PGID=${PGID}
|
|
- 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
|