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"
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

View file

@ -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;
}
}