Skip to content

Nginx Proxy on VM to AIO docker image on separate VM #5263

Answered by vawaver
ddxv asked this question in Questions
Discussion options

You must be logged in to vote

I am sending you my docker-compose.yml

192.168.1.57 - LAN IP for VM1- here I have my NGINX proxy
192.168.1.58 - LAN IP for VM2- here I have Nextcloud AIO

version: "3.4"

volumes:
 nextcloud_aio_mastercontainer:
   name: nextcloud_aio_mastercontainer
services:
 nextcloud:
   image: nextcloud/all-in-one:latest
   restart: unless-stopped
   container_name: nextcloud-aio-mastercontainer
   volumes:
     - nextcloud_aio_mastercontainer:/mnt/docker-aio-config
     - /var/run/docker.sock:/var/run/docker.sock:ro
   ports:
     - 6789:8080 # change the port on the left side if it's already in use on your host system.
   environment:
     - APACHE_PORT=11000
     - APACHE_DISABLE_REWRITE_IP=1
     …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@ddxv
Comment options

Comment options

You must be logged in to vote
1 reply
@ddxv
Comment options

Answer selected by ddxv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants