forked from spiral/ticket-booking
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
199 lines (185 loc) · 4 KB
/
docker-compose.yaml
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
version: "3.7"
services:
frontend:
build:
dockerfile: ./docker/npm/Dockerfile
ports:
- "3000:3000"
volumes:
- ./frontend:/app
depends_on:
- web
command: >
bash -c "yarn install
&& yarn dev"
web:
build:
dockerfile: ./docker/php/Dockerfile
env_file:
- .env
environment:
DB_DATABASE: homestead
OTEL_SERVICE_NAME: php-web
ports:
- "8080:8080"
volumes:
- ./web:/var/www/
- ./shared:/var/shared/
depends_on:
- collector
- redis
- cinema
- payment
command: >
bash -c "chmod +x ./rr
&& php app.php migrate
&& php app.php db:seed
&& ./rr serve"
restart: on-failure
users:
build:
dockerfile: ./docker/php/Dockerfile
env_file:
- .env
environment:
DB_DATABASE: homestead
OTEL_SERVICE_NAME: php-users
volumes:
- ./users:/var/www/
- ./shared:/var/shared/
depends_on:
- temporal
- collector
- redis
command: >
bash -c "chmod +x ./rr
&& php app.php migrate
&& php app.php db:seed
&& ./rr serve"
restart: on-failure
payment:
build:
dockerfile: ./docker/php/Dockerfile
env_file:
- .env
environment:
DB_DATABASE: homestead
OTEL_SERVICE_NAME: php-payment
volumes:
- ./payment:/var/www/
- ./shared:/var/shared/
depends_on:
- temporal
- collector
- redis
command: >
bash -c "chmod +x ./rr
&& php app.php migrate
&& php app.php db:seed
&& ./rr serve"
restart: on-failure
cinema:
build:
dockerfile: ./docker/php/Dockerfile
env_file:
- .env
environment:
DB_DATABASE: homestead
OTEL_SERVICE_NAME: php-cinema
volumes:
- ./cinema:/var/www/
- ./shared:/var/shared/
depends_on:
- temporal
- collector
- redis
command: >
bash -c "chmod +x ./rr
&& php app.php migrate
&& php app.php db:seed
&& ./rr serve"
restart: on-failure
db:
container_name: db
image: postgres
environment:
POSTGRES_USER: homestead
POSTGRES_DB: homestead
POSTGRES_PASSWORD: secret
ports:
- "5432:5432"
logging:
driver: none
postgresql:
container_name: temporal-postgresql
environment:
POSTGRES_PASSWORD: temporal
POSTGRES_USER: temporal
image: postgres
logging:
driver: none
temporal:
container_name: temporal
depends_on:
- postgresql
environment:
DB: postgresql
DB_PORT: 5432
POSTGRES_USER: temporal
POSTGRES_PWD: temporal
POSTGRES_SEEDS: postgresql
DYNAMIC_CONFIG_FILE_PATH: config/dynamicconfig/development-sql.yaml
image: temporalio/auto-setup
volumes:
- ./docker/temporal:/etc/temporal/config/dynamicconfig
restart: on-failure
logging:
driver: none
temporal-web:
container_name: temporal-web
depends_on:
- temporal
environment:
- TEMPORAL_GRPC_ENDPOINT=temporal:7233
- TEMPORAL_PERMIT_WRITE_API=true
image: temporalio/web
ports:
- "8088:8088"
logging:
driver: none
collector:
image: otel/opentelemetry-collector-contrib
command: [ "--config=/etc/otel-collector-config.yml" ]
volumes:
- ./docker/otel/otel-collector-config.yml:/etc/otel-collector-config.yml
logging:
driver: none
zipkin:
image: openzipkin/zipkin-slim
ports:
- "9411:9411"
logging:
driver: none
redis:
image: redis
logging:
driver: none
centrifugo:
container_name: centrifugo
image: centrifugo/centrifugo:latest
volumes:
- ./docker/centrifugo/config.json:/centrifugo/config.json
command: centrifugo -c config.json
ports:
- 8089:8000
ulimits:
nofile:
soft: 65535
hard: 65535
buggregator:
image: butschster/buggregator:beta
ports:
- 23517:8000
- 1025:1025
- 9912:9912
- 9913:9913