From afae00ed2ddf17fb569eefc8771a2c4985e72c85 Mon Sep 17 00:00:00 2001 From: Petr Mrazek Date: Wed, 27 Nov 2019 00:17:18 +0100 Subject: [PATCH] Fix internal network setup --- docker-compose.yml | 14 +++++++++++++- nginx-tc.conf | 2 ++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 521ee16..f64c8ae 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,6 +9,8 @@ services: - "/opt/teamcity/pg_backup:/backups" env_file: .env restart: always + networks: + - teamcity_db server: image: jetbrains/teamcity-server:latest @@ -16,8 +18,18 @@ services: - "/opt/teamcity/data:/data/teamcity_server/datadir" - "/opt/teamcity/logs:/opt/teamcity/logs" ports: - - 8111:8111 + - 127.0.0.1:8111:8111 depends_on: - postgres env_file: .env restart: always + networks: + - teamcity_internal + - teamcity_db + +networks: + teamcity_internal: + external: true + teamcity_db: + external: true + diff --git a/nginx-tc.conf b/nginx-tc.conf index f3d38da..75b91e1 100644 --- a/nginx-tc.conf +++ b/nginx-tc.conf @@ -8,6 +8,7 @@ map $http_upgrade $connection_upgrade { # WebSocket support server { server_name teamcity.multimc.org; listen 80; + client_max_body_size 100M; location / { proxy_pass http://localhost:8111; @@ -32,3 +33,4 @@ server { proxy_temp_file_write_size 10m; } } +