Fix port configuration

This commit is contained in:
deathrow 2023-01-01 14:50:03 -05:00
parent 287ebb7d6d
commit 23d6ee0e2b
No known key found for this signature in database
GPG Key ID: FF39D67A22069F73
2 changed files with 16 additions and 6 deletions

View File

@ -194,6 +194,8 @@ services:
entrypoint: ["/start.py", "run", "--config-path=/data/homeserver.yaml", "--config-path=/data/workers/worker4.yaml"] entrypoint: ["/start.py", "run", "--config-path=/data/homeserver.yaml", "--config-path=/data/workers/worker4.yaml"]
volumes: volumes:
- ./files:/data:Z - ./files:/data:Z
ports:
- 127.0.0.1:8083:8081
depends_on: depends_on:
- synapse - synapse
networks: networks:
@ -213,6 +215,8 @@ services:
entrypoint: ["/start.py", "run", "--config-path=/data/homeserver.yaml", "--config-path=/data/workers/worker3.yaml"] entrypoint: ["/start.py", "run", "--config-path=/data/homeserver.yaml", "--config-path=/data/workers/worker3.yaml"]
volumes: volumes:
- ./files:/data:Z - ./files:/data:Z
ports:
- 127.0.0.1:8082:8081
depends_on: depends_on:
- synapse - synapse
networks: networks:
@ -232,6 +236,8 @@ services:
entrypoint: ["/start.py", "run", "--config-path=/data/homeserver.yaml", "--config-path=/data/workers/worker2.yaml"] entrypoint: ["/start.py", "run", "--config-path=/data/homeserver.yaml", "--config-path=/data/workers/worker2.yaml"]
volumes: volumes:
- ./files:/data:Z - ./files:/data:Z
ports:
- 127.0.0.1:8081:8081
depends_on: depends_on:
- synapse - synapse
networks: networks:
@ -251,6 +257,8 @@ services:
entrypoint: ["/start.py", "run", "--config-path=/data/homeserver.yaml", "--config-path=/data/workers/worker1.yaml"] entrypoint: ["/start.py", "run", "--config-path=/data/homeserver.yaml", "--config-path=/data/workers/worker1.yaml"]
volumes: volumes:
- ./files:/data:Z - ./files:/data:Z
ports:
- 127.0.0.1:8080:8081
depends_on: depends_on:
- synapse - synapse
networks: networks:
@ -269,6 +277,8 @@ services:
entrypoint: ["/start.py", "run", "--config-path=/data/homeserver.yaml", "--config-path=/data/workers/federation3.yaml"] entrypoint: ["/start.py", "run", "--config-path=/data/homeserver.yaml", "--config-path=/data/workers/federation3.yaml"]
volumes: volumes:
- ./files:/data:Z - ./files:/data:Z
ports:
- 127.0.0.1:8082:8081
depends_on: depends_on:
- synapse - synapse
networks: networks:

View File

@ -1,15 +1,15 @@
upstream generic_worker_ih { upstream generic_worker_ih {
ip_hash; ip_hash;
server synapse-generic-worker-1:8081; server synapse-generic-worker-1:8080;
server synapse-generic-worker-2:8081; server synapse-generic-worker-2:8081;
server synapse-generic-worker-3:8081; server synapse-generic-worker-3:8082;
server synapse-generic-worker-4:8081; server synapse-generic-worker-4:8083;
} }
upstream generic_worker_lc { upstream generic_worker_lc {
least_conn; least_conn;
server synapse-generic-worker-1:8081; server synapse-generic-worker-1:8080;
server synapse-generic-worker-2:8081; server synapse-generic-worker-2:8081;
server synapse-generic-worker-3:8081; server synapse-generic-worker-3:8082;
server synapse-generic-worker-4:8081; server synapse-generic-worker-4:8083;
} }