forked from egregors/teamcity-docker-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (48 loc) · 1.23 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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
server:
image: jetbrains/teamcity-server:latest
volumes:
- "/opt/teamcity/data:/data/teamcity_server/datadir"
- "/opt/teamcity/logs:/opt/teamcity/logs"
ports:
- 8111:8111
depends_on:
- postgres
env_file: .env
restart: always
agent:
image: jetbrains/teamcity-minimal-agent
env_file: .env
restart: always
nginx:
image: nginx
links:
- server
volumes:
- "./server/tc.conf:/etc/nginx/conf.d/default.conf"
env_file: .env
nginx-proxy:
image: jwilder/nginx-proxy
ports:
- "80:80"
- "443:443"
volumes:
- "./nginx/vhost.d:/etc/nginx/vhost.d"
- "./nginx/html:/usr/share/nginx/html"
- "./nginx/certs:/etc/nginx/certs"
- "/var/run/docker.sock:/tmp/docker.sock:ro"
- "./server/proxy.conf:/etc/nginx/conf.d/proxy.conf"
letsencrypt-nginx-proxy-companion:
image: jrcs/letsencrypt-nginx-proxy-companion
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
volumes_from:
- "nginx-proxy"