-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
61 lines (57 loc) · 1.37 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
services:
mysqldb:
image: mysql:8.0
container_name: myuserdbcontainer
command: --default-authentication-plugin=mysql_native_password
restart: unless-stopped
volumes:
- db:/var/lib/mysql
expose:
- 3306
environment:
MYSQL_DATABASE: user_analytics
MYSQL_USER: dbuser
MYSQL_PASSWORD: dbpassword
MYSQL_ROOT_PASSWORD: dbpassword
SERVICE_NAME: mysqldb
networks:
- internalnet
orderapp:
container_name: user-analytics-service-container
build: .
image: user-analytics-service:1.0
ports:
- 23456:23456
expose:
- 23456
environment:
DB_DIALECT: mysql
DB_PORT: 3306
DB_DRIVER: pymysql
DB_USER_NAME: dbuser
DB_USER_PASSWORD: dbpassword
DB_HOST: mysqldb
DB_NAME: user_analytics
DB_CONNECTION_STRING: ${DB_DIALECT}+${DB_DRIVER}://${DB_USER_NAME}:${DB_USER_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_NAME}
TRACING_ENABLED: true
TRACING_EXPORTER_TYPE: ZipkinJson
TRACING_COLLECTOR_ENDPOINT: http://zipkin:9411/api/v2/spans
depends_on:
- mysqldb
- zipkin
networks:
- internalnet
zipkin:
container_name: zipkin-container
image: openzipkin/zipkin:latest
ports:
- 9411:9411
expose:
- 9411
networks:
- internalnet
volumes:
db:
networks:
internalnet:
driver: bridge