forked from IoTSharp/IoTSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
131 lines (119 loc) · 2.87 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
130
version: '3.4'
services:
pgsql:
image: postgres
container_name: pgsql
restart: always
volumes:
- "./data/postgresql:/var/lib/postgresql/data"
environment:
TZ: "Asia/Shanghai"
POSTGRES_USER: postgres
POSTGRES_DB: IoTSharp
POSTGRES_PASSWORD: future
ports:
- "5432:5432"
networks:
- iotsharp-network
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin
restart: always
volumes:
- "./data/servers.json:/pgadmin4/servers.json"
depends_on:
- pgsql
links:
- pgsql
ports:
- 8090:80
environment:
TZ: "Asia/Shanghai"
PGADMIN_DEFAULT_EMAIL: "[email protected]"
PGADMIN_DEFAULT_PASSWORD: "1-q2-w3-e4-r5-t"
networks:
- iotsharp-network
iotsharp:
image: iotsharp/iotsharp:latest
restart: always
container_name: iotsharp
hostname: iotsharp
environment:
ASPNETCORE_ENVIRONMENT: Production
TZ: Asia/Shanghai
depends_on:
- pgsql
- mongodb
- rabbitmq
- influx
links:
- pgsql
- mongodb
- rabbitmq
- influx
volumes:
- "./appsettings.Development.json:/app/appsettings.Production.json"
ports:
- 2927:80
- 1883:1883
- 8883:8883
- 5683:5683
- 5684:5684
- 502:502
networks:
- iotsharp-network
rabbitmq:
image: rabbitmq:management
container_name: rabbitmq
restart: always
hostname: mq
ports:
- 15672:15672
- 5672:5672
volumes:
- ./data/rabbitmq:/var/lib/rabbitmq
environment:
- TZ=Asia/Shanghai
- RABBITMQ_DEFAULT_USER=root
- RABBITMQ_DEFAULT_PASS=kissme
networks:
- iotsharp-network
mongodb:
image: mongo:latest
restart: always
container_name: mongodb
volumes:
- ./data/mongodb/db:/data/db
- ./data/mongodb/log:/var/log/mongodb
ports:
- 27017:27017
environment:
TZ: "Asia/Shanghai"
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: kissme
networks:
- iotsharp-network
influx:
image: "quay.io/influxdb/influxdb:v2.0.4"
restart: always
container_name: influx
ports:
- "8086:8086"
environment:
TZ: "Asia/Shanghai"
volumes:
- ./data/influxdb-data:/var/lib/influxdb2
command: influxd run --bolt-path /var/lib/influxdb2/influxd.bolt --engine-path /var/lib/influxdb2/engine --store bolt
networks:
- iotsharp-network
influxdb_cli:
links:
- influx
image: quay.io/influxdb/influxdb:v2.0.4
entrypoint: influx setup --bucket iotsharp-bucket -t iotsharp-token -o iotsharp --username=root --password=1-q2-w3-e4-r5-t --host=http://influx:8086 -f
restart: on-failure:20
depends_on:
- influx
networks:
iotsharp-network:
driver: bridge