-
Notifications
You must be signed in to change notification settings - Fork 3.1k
/
Copy pathdocker-compose-mysql.yml
53 lines (48 loc) · 1.47 KB
/
docker-compose-mysql.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
#
# Copyright The OpenZipkin Authors
# SPDX-License-Identifier: Apache-2.0
#
# This file uses the version 2 docker compose file format, described here:
# https://docs.docker.com/compose/compose-file/#version-2
#
# This runs the zipkin and zipkin-mysql containers, using docker-compose's
# default networking to wire the containers together.
#
# Note that this file is meant for learning Zipkin, not production deployments.
version: '2.4'
services:
storage:
image: ghcr.io/openzipkin/zipkin-mysql:${TAG:-latest}
container_name: mysql
# Uncomment to expose the storage port for testing
# ports:
# - 3306:3306
# Use MySQL instead of in-memory storage
zipkin:
extends:
file: docker-compose.yml
service: zipkin
# slim doesn't include MySQL support, so switch to the larger image
image: ghcr.io/openzipkin/zipkin:${TAG:-latest}
environment:
- STORAGE_TYPE=mysql
- MYSQL_HOST=storage
# Add the baked-in username and password for the zipkin-mysql image
- MYSQL_USER=zipkin
- MYSQL_PASS=zipkin
depends_on:
storage:
condition: service_healthy
dependencies:
extends:
file: docker-compose-dependencies.yml
service: dependencies
environment:
- STORAGE_TYPE=mysql
- MYSQL_HOST=storage
# Add the baked-in username and password for the zipkin-mysql image
- MYSQL_USER=zipkin
- MYSQL_PASS=zipkin
depends_on:
storage:
condition: service_healthy