-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
76 lines (75 loc) · 1.88 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
version: '3.2'
services:
mysql:
image: mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=mobiusdb
ports:
- 3306:3306
volumes:
- mysql-storage:/var/lib/mysql
- ./data/mobiusdb.sql:/docker-entrypoint-initdb.d/mobiusdb.sql
mosquitto:
image: eclipse-mosquitto
restart: always
ports:
- 9001:9001
- 1883:1883
volumes:
- mosquitto-storage:/mosquitto/data
mobius:
image: easyglobalmarket/mobius:latest
restart: always
ports:
- 7579:7579
depends_on:
- mysql
- mosquitto
environment:
- MYSQL_HOST=mysql
- MYSQL_PWD=${MYSQL_ROOT_PASSWORD}
- MQTT_HOST=mosquitto
labels:
kompose.service.expose: "true"
kompose.service.type: nodeport
postgres:
image: timescale/timescaledb-postgis:latest-pg11
restart: always
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_USER=onem2m
- POSTGRES_DB=onem2m_recorder
ports:
- 5432:5432
volumes:
- postgres-storage:/var/lib/postgresql/data
- ./src/main/resources/db/migration/V1__init.sql:/docker-entrypoint-initdb.d/V1__init.sql
grafana:
image: grafana/grafana
restart: always
ports:
- 3000:3000
volumes:
- grafana-storage:/var/lib/grafana
labels:
kompose.service.expose: "true"
kompose.service.type: nodeport
onem2m-recorder:
image: easyglobalmarket/onem2m-recorder
restart: always
ports:
- 8080:8080
environment:
- "SPRING_PROFILES_ACTIVE=int"
- APPLICATION_DATASOURCE_PASSWORD=${POSTGRES_PASSWORD}
- APPLICATION_ONEM2M_ORIGIN=${MOBIUS_ORIGIN}
volumes:
- ./logs:/app/logs
volumes:
grafana-storage:
mysql-storage:
mosquitto-storage:
postgres-storage: