2019-11-05 20:58:51 +01:00
|
|
|
version: '3.7'
|
|
|
|
|
2019-11-10 21:50:43 +01:00
|
|
|
# https://hub.docker.com/_/nextcloud/
|
|
|
|
|
2022-12-10 18:16:50 +01:00
|
|
|
# create admin account during setup
|
|
|
|
|
2019-11-05 20:58:51 +01:00
|
|
|
networks:
|
|
|
|
nextcloud:
|
|
|
|
|
|
|
|
services:
|
|
|
|
nextcloud:
|
2021-11-12 21:13:00 +01:00
|
|
|
image: nextcloud:22
|
2019-11-05 20:58:51 +01:00
|
|
|
container_name: nextcloud
|
2019-12-04 22:00:35 +01:00
|
|
|
restart: "${RESTART:-no}"
|
2019-12-05 22:37:25 +01:00
|
|
|
hostname: cloud
|
|
|
|
domainname: ${BASE_DOMAIN}
|
2019-11-05 20:58:51 +01:00
|
|
|
environment:
|
|
|
|
- POSTGRES_HOST=pg-nextcloud
|
|
|
|
- POSTGRES_DB=nextcloud
|
2019-12-07 23:40:51 +01:00
|
|
|
- POSTGRES_USER=nextcloud
|
2019-11-10 21:50:43 +01:00
|
|
|
- POSTGRES_PASSWORD=${NEXTCLOUD_PG_PWD:-password}
|
2019-11-05 20:58:51 +01:00
|
|
|
volumes:
|
2019-12-25 15:48:01 +01:00
|
|
|
- ${BASE_DIR:-/srv}/nextcloud/html:/var/www/html # Main folder, needed for updating
|
|
|
|
- ${BASE_DIR:-/srv}/nextcloud/apps:/var/www/html/custom_apps # installed / modified apps
|
|
|
|
- ${BASE_DIR:-/srv}/nextcloud/config:/var/www/html/config # local configuration
|
|
|
|
- ${BASE_DIR:-/srv}/nextcloud/data:/var/www/html/data # the actual data of your Nextcloud
|
|
|
|
- ${BASE_DIR:-/srv}/nextcloud/themes:/var/www/html/themes # theming/branding
|
2019-11-05 20:58:51 +01:00
|
|
|
depends_on:
|
|
|
|
- pg-nextcloud
|
|
|
|
networks:
|
|
|
|
- proxy
|
|
|
|
- mail
|
|
|
|
- nextcloud
|
|
|
|
|
|
|
|
pg-nextcloud:
|
|
|
|
image: postgres:12-alpine
|
|
|
|
container_name: pg-nextcloud
|
2019-12-04 22:00:35 +01:00
|
|
|
restart: "${RESTART:-no}"
|
2019-11-05 20:58:51 +01:00
|
|
|
environment:
|
|
|
|
- POSTGRES_DB=nextcloud
|
2019-12-07 23:40:51 +01:00
|
|
|
- POSTGRES_USER=nextcloud
|
2019-11-10 21:50:43 +01:00
|
|
|
- POSTGRES_PASSWORD=${NEXTCLOUD_PG_PWD:-password}
|
2019-11-05 20:58:51 +01:00
|
|
|
volumes:
|
2019-12-25 15:48:01 +01:00
|
|
|
- ${BASE_DIR:-/srv}/nextcloud/psql:/var/lib/postgresql/data
|
2019-11-05 20:58:51 +01:00
|
|
|
networks:
|
|
|
|
- nextcloud
|