Fix internal network setup

This commit is contained in:
Petr Mrazek 2019-11-27 00:17:18 +01:00
parent 1d755899e4
commit afae00ed2d
2 changed files with 15 additions and 1 deletions

View file

@ -9,6 +9,8 @@ services:
- "/opt/teamcity/pg_backup:/backups" - "/opt/teamcity/pg_backup:/backups"
env_file: .env env_file: .env
restart: always restart: always
networks:
- teamcity_db
server: server:
image: jetbrains/teamcity-server:latest image: jetbrains/teamcity-server:latest
@ -16,8 +18,18 @@ services:
- "/opt/teamcity/data:/data/teamcity_server/datadir" - "/opt/teamcity/data:/data/teamcity_server/datadir"
- "/opt/teamcity/logs:/opt/teamcity/logs" - "/opt/teamcity/logs:/opt/teamcity/logs"
ports: ports:
- 8111:8111 - 127.0.0.1:8111:8111
depends_on: depends_on:
- postgres - postgres
env_file: .env env_file: .env
restart: always restart: always
networks:
- teamcity_internal
- teamcity_db
networks:
teamcity_internal:
external: true
teamcity_db:
external: true

View file

@ -8,6 +8,7 @@ map $http_upgrade $connection_upgrade { # WebSocket support
server { server {
server_name teamcity.multimc.org; server_name teamcity.multimc.org;
listen 80; listen 80;
client_max_body_size 100M;
location / { location / {
proxy_pass http://localhost:8111; proxy_pass http://localhost:8111;
@ -32,3 +33,4 @@ server {
proxy_temp_file_write_size 10m; proxy_temp_file_write_size 10m;
} }
} }