This repository has been archived by the owner on Oct 31, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
/
docker-compose.yml
73 lines (67 loc) · 1.58 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
version: '3'
services:
etcd:
image: "quay.io/coreos/etcd:v3.4.9"
restart: always
environment:
ETCD_ADVERTISE_CLIENT_URLS: "http://0.0.0.0:2379"
ETCD_LISTEN_CLIENT_URLS: "http://0.0.0.0:2379"
ETCDCTL_API: "3"
ALLOW_NONE_AUTHENTICATION: "yes"
ports:
- 2379:2379
- 2380:2380
- 4001:4001
# volumes:
# - ./config/etcd:/etcd
mysql:
image: mysql:latest
restart: always
environment:
# MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_ROOT_PASSWORD: root
MYSQL_ROOT_HOST: "%"
security_opt:
- seccomp:unconfined
volumes:
- ./config/initdb:/docker-entrypoint-initdb.d
# - ./config/mysql/data:/var/lib/mysql
# - ./config/mysql/conf.d:/etc/mysql/conf.d
prometheus:
image: prom/prometheus:latest
restart: always
volumes:
- ./config/prometheus/juno-prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"
depends_on:
- etcd
grafana:
image: grafana/grafana:latest
restart: always
volumes:
- ./config/juno/juno-grafana.ini:/etc/grafana/grafana.ini
ports:
- 3000:3000
depends_on:
- juno-admin
- prometheus
juno-admin:
image: ghcr.io/douyu/juno-admin:latest
# build:
# context: ./docker/juno-admin/
restart: always
ports:
- 50002:50002
- 50004:50004
volumes:
- ./config/juno/:/root/juno/config
depends_on:
- mysql
- prometheus
- etcd
# docker network create juno-world
# networks:
# default:
# external:
# name: juno-world