Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Troubleshooting Linking 2 servers #107

Closed
jcoelh0 opened this issue Apr 26, 2020 · 3 comments
Closed

Troubleshooting Linking 2 servers #107

jcoelh0 opened this issue Apr 26, 2020 · 3 comments

Comments

@jcoelh0
Copy link

jcoelh0 commented Apr 26, 2020

I'm trying to figure out

Running the command:
docker exec *container-id* /conf/links.sh
doesn't output anything..

The haproxy is working perfectly between the 2 servers but when I connect two clients (one to each server), they are in two separate servers instead of one linked between the two.
What am I doing wrong?

`

version: "3.7"
services:

haproxy:
image: haproxy:alpine
volumes:
- ./haproxy/:/usr/local/etc/haproxy/
depends_on:
- inspircd1
- inspircd2
ports:
- "6667:6667"
networks:
- backend

inspircd1:
image: inspircd/inspircd-docker
volumes:
- ./server1/conf/:/inspircd/conf/
environment:
INSP_NET_NAME: inspircd1
INSP_SERVER_NAME: inspircd1.local
INSP_NET_SUFFIX: .local

  INSP_LINK1_NAME: inspircd2.local
  INSP_LINK1_IPADDR: inspircd2
  INSP_LINK1_SENDPASS: password
  INSP_LINK1_RECVPASS: password
  INSP_LINK1_TLS_ON: "no"
ports:
  - "6667" #client
  - "7000" #server
networks:
  - backend
   # aliases:
   #   - inspircd1.local

inspircd2:
image: inspircd/inspircd-docker
volumes:
- ./server2/conf/:/inspircd/conf/
environment:
INSP_NET_NAME: inspircd2
INSP_SERVER_NAME: inspircd2.local
INSP_NET_SUFFIX: .local

  INSP_LINK2_NAME: inspircd1.local
  INSP_LINK2_IPADDR: inspircd1
  INSP_LINK2_SENDPASS: password
  INSP_LINK2_RECVPASS: password
  INSP_LINK2_TLS_ON: "no"
ports:
  - "6667"
  - "7000"
networks:
  - backend

networks:
backend:
`

@SISheogorath
Copy link
Contributor

SISheogorath commented Apr 27, 2020

You should run /conf/links.sh LINK1 to see the resulting config.

@jcoelh0
Copy link
Author

jcoelh0 commented Apr 27, 2020

image

@jcoelh0
Copy link
Author

jcoelh0 commented Apr 27, 2020

Using docker compose it works perfectly fine, but switching to docker swarm it can't connect..

@jcoelh0 jcoelh0 closed this as completed Apr 27, 2020
@ghost ghost mentioned this issue Aug 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants