Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: "2"
- services:
- nextcloud:
- image: ghcr.io/linuxserver/nextcloud
- container_name: nextcloud
- environment:
- - PUID=1000 #change PUID if needed
- - PGID=100 #change PGID if needed
- - TZ=Europe/Berlin #change Time Zone if needed
- volumes:
- - /srv/dev-disk-by-label-disk1/appdata/nextcloud/config:/config #/srv/dev-disk-by-label-disk1 needs to be adjusted
- - /srv/dev-disk-by-label-disk1/appdata/nextcloud/data:/data #/srv/dev-disk-by-label-disk1 needs to be adjusted
- depends_on:
- - mariadb
- # ports: # uncomment this and the next line if you want to bypass the proxy
- # - 450:443
- restart: unless-stopped
- mariadb:
- image: ghcr.io/linuxserver/mariadb
- container_name: nextclouddb
- environment:
- - PUID=1000 #change PUID if needed
- - PGID=100 #change PGID if needed
- - MYSQL_ROOT_PASSWORD=mariadbpassword #change password
- - TZ=Europe/Berlin #Change Time Zone if needed
- volumes:
- - /srv/dev-disk-by-label-disk1/appdata/nextclouddb:/config #/srv/dev-disk-by-label-disk1 needs to be adjusted
- restart: unless-stopped
- swag:
- image: linuxserver/swag #swag is the replacement for letsencrypt (see link below)
- container_name: swag
- cap_add:
- - NET_ADMIN
- environment:
- - PUID=1000 #change PUID if needed
- - PGID=100 #change PGID if needed
- - TZ=Europe/Berlin # change Time Zone if needed
- - URL=xxxx.de #insert your domain name - yourdomain.url
- - SUBDOMAINS=www,
- - VALIDATION=http
- - EMAIL=xxx.yyy@provider.com # define email; required to renew certificate
- volumes:
- - /srv/dev-disk-by-label-disk1/appdata/swag:/config #/srv/dev-disk-by-label-disk1 needs to be adjusted
- ports:
- - 444:443
- - 81:80
- restart: unless-stopped
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement