Nextcloud als Container
Erscheinungsbild
version: "2.1"
services:
db:
image: postgres
container_name: nextcloud-postgres
restart: always
volumes:
- postgres:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=123456789
- POSTGRES_USER=mige_db
- POSTGRES_DB=nxt_db
nextcloud:
image: lscr.io/linuxserver/nextcloud:latest
container_name: nextcloud
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Zurich
- POSTGRES_DB=nxt_db
- POSTGRES_USER=mige_db
- POSTGRES_PASSWORD=123456789
- NEXTCLOUD_ADMIN_USER=nxt_admin
- NEXTCLOUD_ADMIN_PASSWORD=123456789
links:
- db
depends_on:
- db
cap_add:
- ALL
volumes:
- nextcloud_config:/config
- nextcloud_data:/data
ports:
- 443:443
restart: unless-stopped
volumes:
postgres:
nextcloud_config:
nextcloud_data: