35 lines
677 B
YAML
35 lines
677 B
YAML
version: '2'
|
|
|
|
services:
|
|
|
|
postgres:
|
|
build: ./postgres
|
|
volumes:
|
|
- "/opt/teamcity/pg_data:/var/lib/postgresql/data"
|
|
- "/opt/teamcity/pg_backup:/backups"
|
|
env_file: .env
|
|
restart: always
|
|
networks:
|
|
- teamcity_db
|
|
|
|
server:
|
|
image: jetbrains/teamcity-server:latest
|
|
volumes:
|
|
- "/opt/teamcity/data:/data/teamcity_server/datadir"
|
|
- "/opt/teamcity/logs:/opt/teamcity/logs"
|
|
ports:
|
|
- 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
|
|
|