diff --git a/docker-compose.yml b/docker-compose.yml index c6aa161..13ec093 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -194,6 +194,8 @@ services: entrypoint: ["/start.py", "run", "--config-path=/data/homeserver.yaml", "--config-path=/data/workers/worker4.yaml"] volumes: - ./files:/data:Z + ports: + - 127.0.0.1:8083:8081 depends_on: - synapse networks: @@ -213,6 +215,8 @@ services: entrypoint: ["/start.py", "run", "--config-path=/data/homeserver.yaml", "--config-path=/data/workers/worker3.yaml"] volumes: - ./files:/data:Z + ports: + - 127.0.0.1:8082:8081 depends_on: - synapse networks: @@ -232,6 +236,8 @@ services: entrypoint: ["/start.py", "run", "--config-path=/data/homeserver.yaml", "--config-path=/data/workers/worker2.yaml"] volumes: - ./files:/data:Z + ports: + - 127.0.0.1:8081:8081 depends_on: - synapse networks: @@ -251,6 +257,8 @@ services: entrypoint: ["/start.py", "run", "--config-path=/data/homeserver.yaml", "--config-path=/data/workers/worker1.yaml"] volumes: - ./files:/data:Z + ports: + - 127.0.0.1:8080:8081 depends_on: - synapse networks: @@ -269,6 +277,8 @@ services: entrypoint: ["/start.py", "run", "--config-path=/data/homeserver.yaml", "--config-path=/data/workers/federation3.yaml"] volumes: - ./files:/data:Z + ports: + - 127.0.0.1:8082:8081 depends_on: - synapse networks: diff --git a/swag/nginx/include.d/upstream_workers.conf b/swag/nginx/include.d/upstream_workers.conf index 54eb620..f08f5c7 100644 --- a/swag/nginx/include.d/upstream_workers.conf +++ b/swag/nginx/include.d/upstream_workers.conf @@ -1,15 +1,15 @@ upstream generic_worker_ih { ip_hash; - server synapse-generic-worker-1:8081; + server synapse-generic-worker-1:8080; server synapse-generic-worker-2:8081; - server synapse-generic-worker-3:8081; - server synapse-generic-worker-4:8081; + server synapse-generic-worker-3:8082; + server synapse-generic-worker-4:8083; } upstream generic_worker_lc { least_conn; - server synapse-generic-worker-1:8081; + server synapse-generic-worker-1:8080; server synapse-generic-worker-2:8081; - server synapse-generic-worker-3:8081; - server synapse-generic-worker-4:8081; + server synapse-generic-worker-3:8082; + server synapse-generic-worker-4:8083; } \ No newline at end of file