Deploy Nextcloud AIO with Dokploy
Prerequisites
- Dokploy installed on your server (see Dokploy documentation)
- A domain name and DNS record pointing to your server
Steps
- Create a new project in Dokploy
- Create a new compose service in this project
- Fill the form
- Add this raw compose file:
Hint: You can use the
ncdatavolume to store your data. But it has to be created before running the compose file for the first time.
yaml
volumes:
nextcloud_aio_mastercontainer:
name: nextcloud_aio_mastercontainer
networks:
dokploy-network: # It has to be on the same network as Træfik is running on
name: dokploy-network
external: true
nextcloud-aio:
name: nextcloud-aio
driver_opts:
com.docker.network.driver.mtu: 1440
services:
nextcloud-aio-mastercontainer:
image: ghcr.io/nextcloud-releases/all-in-one:latest
init: true
restart: always
container_name: nextcloud-aio-mastercontainer
networks:
- dokploy-network
- nextcloud-aio
volumes:
- nextcloud_aio_mastercontainer:/mnt/docker-aio-config
- /mnt/ncdata/nextcloud:/mnt/ncdata/nextcloud
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
- APACHE_PORT=11000
- APACHE_IP_BINDING=0.0.0.0
- APACHE_ADDITIONAL_NETWORK=dokploy-network
- NEXTCLOUD_DATADIR=/mnt/ncdata/nextcloud
ports:
- 8081:8080 # This is the AIO interface, served via https and self-signed certificate.- Add this raw traefik file: