version: "3.9" networks: proxy: external: true net: external: false volumes: redis: services: nextcloud-redis: image: redis:latest container_name: nextcloud-redis restart: always volumes: - redis:/data networks: - net nextcloud-db: image: lscr.io/linuxserver/mariadb:latest container_name: nextcloud-db restart: always environment: - PUID=1000 - PGID=1000 - TZ=Europe/Berlin - MYSQL_ROOT_PASSWORD=root - MYSQL_DATABASE=db - MYSQL_USER=user - MYSQL_PASSWORD=password volumes: - ./db:/config networks: - net nextcloud: image: lscr.io/linuxserver/nextcloud:latest container_name: nextcloud restart: always depends_on: - nextcloud-db - nextcloud-redis environment: - PUID=1000 - PGID=1000 - TZ=Europe/Berlin volumes: - ./config:/config - ./data:/data expose: - 443 networks: - net - proxy