-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
112 lines (101 loc) · 2.27 KB
/
docker-compose.yml
File metadata and controls
112 lines (101 loc) · 2.27 KB
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
version: '3.8'
services:
logistics-db:
container_name: logistics_db
image: postgres
restart: always
ports:
- "5433:5432"
environment:
POSTGRES_USER: logistics_db
POSTGRES_PASSWORD: logistics_db
POSTGRES_DB: logistics
volumes:
- logistics_db:/var/lib/postgresql/data
- ./postgres-init/logistics/init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- tiniping_network
user-db:
container_name: user_db
image: postgres
restart: always
ports:
- "5436:5432"
environment:
POSTGRES_USER: user_db
POSTGRES_PASSWORD: user_db
POSTGRES_DB: user
volumes:
- user_db:/var/lib/postgresql/data
- ./postgres-init/users/init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- tiniping_network
hub-db:
container_name: hub_db
image: postgres
restart: always
ports:
- "5434:5432"
environment:
POSTGRES_USER: hub_db
POSTGRES_PASSWORD: hub_db
POSTGRES_DB: hub
volumes:
- hub_db:/var/lib/postgresql/data
- ./postgres-init/hubs/init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- tiniping_network
ai-db:
container_name: ai_db
image: postgres
restart: always
ports:
- "5435:5432"
environment:
POSTGRES_USER: ai_db
POSTGRES_PASSWORD: ai_db
POSTGRES_DB: ai
volumes:
- ai_db:/var/lib/postgresql/data
- ./postgres-init/ais/init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- tiniping_network
zipkin:
image: openzipkin/zipkin
container_name: zipkin
restart: always
ports:
- "9411:9411"
networks:
- tiniping_network
redis:
image: redis:latest
container_name: redis
ports:
- "6379:6379"
prometheus:
image: prom/prometheus
container_name: prometheus
restart: always
ports:
- "9090:9090"
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
networks:
- tiniping_network
grafana:
image: grafana/grafana
container_name: grafana
restart: always
ports:
- "3010:3000"
networks:
- tiniping_network
volumes:
logistics_db:
user_db:
hub_db:
ai_db:
networks:
tiniping_network:
driver: bridge