-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yaml
51 lines (46 loc) · 1.24 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
version: '3'
services:
cache:
image: redis:latest
container_name: redis
ports:
- 6379:6379
api:
container_name: api
build: '.'
links:
- cache:cache
command: /app/api
ports:
- 8000:8000
environment:
- TOKEN_SECRET=mySecretJWT
- CACHE_HOST=cache
- DB_HOST=database
- DB_USER=root
- DB_PASSWORD=toor
- TRACE_HOST=jaeger:14268
depends_on:
- database
- cache
- jaeger
restart: always
database:
image: "mysql:5.7.24"
container_name: database
command:
- "--character-set-server=utf8mb4"
- "--collation-server=utf8mb4_unicode_ci"
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: "toor"
MYSQL_DATABASE: "auth"
MYSQL_USER: "user"
MYSQL_PASSWORD: "pass"
jaeger:
image: jaegertracing/all-in-one:1.22.0
container_name: jaeger
ports:
- "14268:14268" # jaeger-collector HTTP server (tracer provider)
- "16686:16686" # HTTP server (browser UI)