2019-02-13 15:45:41 -07:00
|
|
|
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
|
2019-11-26 16:17:18 -07:00
|
|
|
networks:
|
|
|
|
- teamcity_db
|
2019-02-13 15:45:41 -07:00
|
|
|
|
|
|
|
server:
|
|
|
|
image: jetbrains/teamcity-server:latest
|
|
|
|
volumes:
|
|
|
|
- "/opt/teamcity/data:/data/teamcity_server/datadir"
|
|
|
|
- "/opt/teamcity/logs:/opt/teamcity/logs"
|
|
|
|
ports:
|
2019-11-26 16:17:18 -07:00
|
|
|
- 127.0.0.1:8111:8111
|
2019-02-13 15:45:41 -07:00
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
env_file: .env
|
|
|
|
restart: always
|
2019-11-26 16:17:18 -07:00
|
|
|
networks:
|
|
|
|
- teamcity_internal
|
|
|
|
- teamcity_db
|
|
|
|
|
|
|
|
networks:
|
|
|
|
teamcity_internal:
|
|
|
|
external: true
|
|
|
|
teamcity_db:
|
|
|
|
external: true
|
|
|
|
|