Skip to content

Instantly share code, notes, and snippets.

@danmac
Created April 23, 2024 05:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danmac/8eb9ab3013f6ea75b3835eb72c5ffe8e to your computer and use it in GitHub Desktop.
Save danmac/8eb9ab3013f6ea75b3835eb72c5ffe8e to your computer and use it in GitHub Desktop.
A Portainer Stack to load nextcloud on docker behind a reverse proxy. I then point NGINX Proxy Manager to port 11000
services:
nextcloud-aio-mastercontainer:
image: nextcloud/all-in-one:latest
init: true
restart: always
container_name: nextcloud-aio-mastercontainer
volumes:
- nextcloud_aio_mastercontainer:/mnt/docker-aio-config
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
- APACHE_PORT=11000
- APACHE_IP_BINDING=0.0.0.0
- NEXTCLOUD_DATADIR=nextcloud_aio_nextcloud_datadir # This is so you can create a volume in portainer called nextcloud_aio_nextcloud_datadir to use for data. In my case on a CIFS share
ports:
- 8888:8080 # Had to map 8080 to something else becuase 8080 was already mapped on my docker server
volumes:
nextcloud_aio_mastercontainer:
name: nextcloud_aio_mastercontainer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment