services: nextcloud-aio-ts: image: tailscale/tailscale:latest hostname: nextcloud-aio container_name: nextcloud-aio-ts environment: - TS_AUTHKEY={{YOUR_TAILSCALE_AUTHKEY}} - TS_STATE_DIR=/var/lib/tailscale - TS_SERVE_CONFIG=/config/serve.json volumes: - ./tailscale/tailscale-data:/var/lib/tailscale - ./tailscale/config:/config - /dev/net/tun:/dev/net/tun cap_add: - net_admin - sys_module networks: - nextcloud-aio restart: unless-stopped nextcloud-aio: image: ghcr.io/nextcloud-releases/all-in-one:latest container_name: nextcloud-aio-mastercontainer # app requirement depends_on: - nextcloud-aio-ts environment: - APACHE_IP_BINDING=0.0.0.0 - APACHE_PORT=11000 # - NEXTCLOUD_ENABLE_DRI_DEVICE=true # enable for hardware acceleration # - NEXTCLOUD_STARTUP_APPS=memories music twofactor_totp # optional check next cloud config - SKIP_DOMAIN_VALIDATION=true # requirement for tailscale init: true networks: - nextcloud-aio restart: always volumes: - nextcloud-aio-data:/mnt/docker-aio-config - /var/run/docker.sock:/var/run/docker.sock:ro # extra_hosts: # - "host.docker.internal:host-gateway" networks: nextcloud-aio: name: nextcloud-aio # app requirement for domain volumes: nextcloud-aio-data: name: nextcloud_aio_mastercontainer # app requirement for backup feature nextcloud-tailscale-data: