0

I'm kinda new to docker so maybe my question is stupid, however, I've been unable to find a solution for it for a while now and it's starting to bother me so I'm asking here:

I have a default bridge network inside which there are few containers, one of them is running gluetun which is a vpn client and the rest is what's known as apache guacamole which is used as a remote desktop gateway.

It looks something like this:

networks:
  guacnetwork_compose:
    driver: bridge


services:
#gluten
  gluetun:
    image: qmcgaw/gluetun
    #trqbva da mu dadem net_admin inache openvpn ne raboti
    cap_add:
      - NET_ADMIN
    ports:
      - 8888:8888/tcp # HTTP proxy
      - 8388:8388/tcp # Shadowsocks
      - 8388:8388/udp # Shadowsocks
#      - 4823:4822
#    networks:
#      enable_ipv6=false
    
    volumes:
    environment:
      - VPNSP=custom
      - VPN_TYPE=openvpn
      # OpenVPN:
      - OPENVPN_USER=
      - OPENVPN_PASSWORD=
      - OPENVPN_CUSTOM_CONFIG=
      # Timezone for accurate log times
#      - TZ=

      #guacd
  guacd:
    container_name: guacd_compose
    image: guacamole/guacd
    network_mode: "service:gluetun"
#    networks:
#      guacnetwork_compose:
    restart: always
    volumes:
    - ./drive:/drive:rw
    - ./record:/record:rw
#    ports:
#    - 4823:4822

  guacd-no-vpn:
    container_name: guacd_compose_no_vpn
    image: guacamole/guacd
    networks:
      - guacnetwork_compose
    restart: always
    volumes:
    - ./drive:/drive:rw
    - ./record:/record:rw   

  # guacamole
  guacamole:
    container_name: guacamole_compose
    depends_on:
    - guacd
    - postgres
    environment:
      GUACD_HOSTNAME: guacd
      POSTGRES_DATABASE: 
      POSTGRES_HOSTNAME: 
      POSTGRES_PASSWORD: 
      POSTGRES_USER:
    image: guacamole/guacamole
    links:
    - gluetun
    networks:
    -  guacnetwork_compose
    ports:
## if not nginx
##   - 8080:8080/tcp # Guacamole is on :8080/guacamole, not /.
    - 8080/tcp
    restart: always

Basically what I want to happen is for the guacd container to use the network of the VPN container and then communicate with the GUI which is the guacamole container. Currently, the guacd is using the gluetun network, however, I can not get it to communicate with the guacamole container despite my efforts. Could somebody tell me what am I doing wrong?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.