42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
|
version: '3.7'
|
||
|
|
||
|
networks:
|
||
|
nextcloud:
|
||
|
|
||
|
services:
|
||
|
nextcloud:
|
||
|
image: nextcloud:17
|
||
|
container_name: nextcloud
|
||
|
restart: unless-stopped
|
||
|
hostname: cloud.${BASE_DOMAIN}
|
||
|
environment:
|
||
|
- POSTGRES_HOST=pg-nextcloud
|
||
|
- POSTGRES_USER=nextcloud
|
||
|
- POSTGRES_DB=nextcloud
|
||
|
- POSTGRES_PASSWORD=password
|
||
|
volumes:
|
||
|
- /srv/nextcloud/html:/var/www/html # Main folder, needed for updating
|
||
|
- /srv/nextcloud/apps:/var/www/html/custom_apps # installed / modified apps
|
||
|
- /srv/nextcloud/config:/var/www/html/config # local configuration
|
||
|
- /srv/nextcloud/data:/var/www/html/data # the actual data of your Nextcloud
|
||
|
- /srv/nextcloud/themes:/var/www/html/themes # theming/branding
|
||
|
depends_on:
|
||
|
- pg-nextcloud
|
||
|
networks:
|
||
|
- proxy
|
||
|
- mail
|
||
|
- nextcloud
|
||
|
|
||
|
pg-nextcloud:
|
||
|
image: postgres:12-alpine
|
||
|
container_name: pg-nextcloud
|
||
|
restart: unless-stopped
|
||
|
environment:
|
||
|
- POSTGRES_USER=nextcloud
|
||
|
- POSTGRES_DB=nextcloud
|
||
|
- POSTGRES_PASSWORD=password
|
||
|
volumes:
|
||
|
- /srv/nextcloud/psql:/var/lib/postgresql/data
|
||
|
networks:
|
||
|
- nextcloud
|