-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
129 lines (129 loc) · 3.82 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
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
version: "3.9"
name: "web3"
services:
base.web3.mysql:
image: 'mysql:latest'
container_name: base.web3.mysql
command: >-
--default-authentication-plugin=mysql_native_password
--character-set-server=utf8mb4 --collation-server=utf8mb4_general_ci
--explicit_defaults_for_timestamp=true --lower_case_table_names=1
restart: always
environment:
MYSQL_ROOT_PASSWORD: web3
MYSQL_DATABASE: web3
TZ: Asia/Shanghai
# ports:
# - '60001:3306'
volumes:
- ./deploy/docker/mysql/init.sql:/docker-entrypoint-initdb.d/init.sql
- ./deploy/docker/mysql/data:/var/lib/mysql
networks:
- web3_net
base.web3.redis:
image: 'redis:alpine'
container_name: base.web3.redis
restart: on-failure
networks:
- web3_net
base.web3.rabbitmq:
image: 'rabbitmq:management'
container_name: base.web3.rabbitmq
restart: on-failure
# ports:
# - '60003:15672'
networks:
- web3_net
base.web3.prometheus:
image: 'bitnami/prometheus:latest'
container_name: base.web3.prometheus
restart: on-failure
volumes:
- ./deploy/docker/prometheus/prometheus.yml:/opt/bitnami/prometheus/conf/prometheus.yml
- ./deploy/docker/prometheus/data:/opt/bitnami/prometheus/data
networks:
- web3_net
# ports:
# - '60004:9090'
base.web3.grafana:
image: 'grafana/grafana:latest'
container_name: base.web3.grafana
restart: on-failure
environment:
GF_FEATURE_TOGGLES_ENABLE: publicDashboards
volumes:
- ./deploy/docker/grafana/grafana.ini:/etc/grafana/grafana.ini
- ./deploy/docker/grafana/dashboard.yaml:/etc/grafana/provisioning/dashboards/dashboard.yaml
- ./deploy/docker/grafana/data:/var/lib/grafana
- ./deploy/docker/grafana/datasources:/etc/grafana/provisioning/datasources
- ./deploy/docker/grafana/dashboards:/var/lib/grafana/dashboards/default
networks:
- web3_net
ports:
- '60005:3000'
base.web3.cadvisor:
image: 'gcr.io/cadvisor/cadvisor:latest'
container_name: base.web3.cadvisor
restart: on-failure
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
networks:
- web3_net
app.interface.web3:
image: 'borisliu1/web3-template-app-interface-web3:latest'
container_name: app.interface.web3
restart: on-failure
volumes:
- ./deploy/docker/conf/app.interface.web3:/app/configs
# ports:
# - '51011:8000'
networks:
- web3_net
app.service.data:
image: 'borisliu1/web3-template-app-service-data:latest'
container_name: app.service.data
restart: on-failure
volumes:
- ./deploy/docker/conf/app.service.data:/app/configs
networks:
- web3_net
app.service.demo:
image: 'borisliu1/web3-template-app-service-demo:latest'
container_name: app.service.demo
restart: on-failure
volumes:
- ./deploy/docker/conf/app.service.demo:/app/configs
networks:
- web3_net
app.job.datawatch:
image: 'borisliu1/web3-template-app-job-datawatch:latest'
container_name: app.job.datawatch
restart: on-failure
volumes:
- ./deploy/docker/conf/app.job.datawatch:/app/configs
networks:
- web3_net
app.job.databus:
image: 'borisliu1/web3-template-app-job-databus:latest'
container_name: app.job.databus
restart: on-failure
volumes:
- ./deploy/docker/conf/app.job.databus:/app/configs
networks:
- web3_net
app.job.analysis:
image: 'borisliu1/web3-template-app-job-analysis:latest'
container_name: app.job.analysis
restart: on-failure
volumes:
- ./deploy/docker/conf/app.job.analysis:/app/configs
networks:
- web3_net
networks:
web3_net:
driver: bridge
driver_opts:
com.docker.network.driver.mtu: 1450