Fix internal network setup
This commit is contained in:
parent
1d755899e4
commit
afae00ed2d
2 changed files with 15 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue