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"
|
- "/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
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue