This repository has been archived by the owner on Mar 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
97 lines (90 loc) · 2.19 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
version: '3'
services:
gateway:
container_name: gateway
build: gateway
image: gitlab-registry.tubit.tu-berlin.de/peng/peng-project/gateway
expose:
- "8080"
- "8088"
ports:
- "80:8080"
- "8088:8088"
depends_on:
- highscore-service
- helloworld-service
db:
container_name: db
image: postgres
volumes:
- ./database-service/init.sql:/docker-entrypoint-initdb.d/init.sql
restart: always
expose:
- "5432"
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: example
helloworld-service:
container_name: helloworld
build: helloworld-service
image: gitlab-registry.tubit.tu-berlin.de/peng/peng-project/helloworld
ports:
- "8081:8081"
depends_on:
- db
links:
- db
environment:
- JAEGER_AGENT_HOST=jaeger
- JAEGER_AGENT_PORT=6831
highscore-service:
container_name: highscores #name is important for forwarding in gateway
build: highscore-service
image: gitlab-registry.tubit.tu-berlin.de/peng/peng-project/highscore
ports:
- "8082:8082"
depends_on:
- db
links:
- db
environment:
- JAEGER_AGENT_HOST=jaeger
- JAEGER_AGENT_PORT=6831
- DATABASE_HOST=postgres
score-service:
container_name: savescore
build: score-service
image: gitlab-registry.tubit.tu-berlin.de/peng/peng-project/savescore
ports:
- "8083:8083"
depends_on:
- db
- highscore-service
links:
- db
environment:
- JAEGER_AGENT_HOST=jaeger
- JAEGER_AGENT_PORT=6831
- DATABASE_HOST=postgres
jaeger:
container_name: jaeger
image: jaegertracing/all-in-one:1.18.1
ports:
- "5775:5775/udp"
- "6831:6831/udp"
- "6832:6832/udp"
- "5778:5778"
- "16686:16686"
- "14268:14268"
- "14250:14250"
- "9411:9411"
transparency-opentracing-jaeger-extract:
build: transparency-opentracing-jaeger-extract
image: gitlab-registry.tubit.tu-berlin.de/peng/peng-project/transparency-opentracing-jaeger-extract
ports:
- "5000:5000"
depends_on:
- jaeger
environment:
- JAEGER_QUERY_HOST=jaeger