Im trying to install Nextcloud AIO and give it a static ip adress on a external network. It gives me the error “could not resolve the host nextcloud.com. most likely the dns resolving does not work” what looks like it is caused by setting an external network with IP. Added the DNS but didnt help. It should run behind a nginx reverse proxy but it runs on a different machine. Whats wrong with my attempt? Also is it possible to implement a redis server?
Thanks
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
ports:
- 80:80 # Can be removed when running behind a web server or reverse proxy (like Apache, Nginx, Cloudflare Tunnel and else). See all-in-one/reverse-proxy.md at main · nextcloud/all-in-one · GitHub
- 8080:8080
- 8443:8443 # Can be removed when running behind a web server or reverse proxy (like Apache, Nginx, Cloudflare Tunnel and else). See all-in-one/reverse-proxy.md at main · nextcloud/all-in-one · GitHub
dns:
- 192.168.x.x
- 8.8.4.4
- 8.8.8.8
environment:
- /share/xxxxxx/nextcloud-aio=/mnt/ncdata
# - NEXTCLOUD_MOUNT=/mnt/
- NEXTCLOUD_UPLOAD_LIMIT=50G
# - NEXTCLOUD_MAX_TIME=3600
- NEXTCLOUD_MEMORY_LIMIT=2096M
- NEXTCLOUD_ENABLE_DRI_DEVICE=true
networks:
default:
ipv4_address: 192.168.x.x
networks:
default:
external:
name: qnet-static-eth1-b03c93
volumes:
nextcloud_aio_mastercontainer:
name: nextcloud_aio_mastercontainer