-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
118 lines (109 loc) · 2.42 KB
/
docker-compose.dev.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
version: '3'
services:
timescaledb:
container_name: rockiot_timescale
build:
context: ./docker/timescale
ports:
- "5432:5432"
environment:
POSTGRES_USERNAME: "postgres"
POSTGRES_PASSWORD: "postgres"
POSTGRES_DB: "rock_iot"
PG_DATA: "$HOME/docker/postgres/data"
volumes:
- $HOME/docker/postgres/data:/var/lib/postgresql/data
networks:
- app-tier
rockiot:
build:
context: rockiot
dockerfile: ./Dockerfile.prod
depends_on:
- timescaledb
- rabbit1
env_file:
- rockiot.dev.env
rockiotworker_default:
depends_on:
- timescaledb
- rabbit1
- rockiot
env_file:
- rockiot.dev.env
rockiotworker_device:
depends_on:
- timescaledb
- rabbit1
- rockiot
env_file:
- rockiot.dev.env
rockiotbeat:
depends_on:
- timescaledb
- rabbit1
- rockiot
env_file:
- rockiot.dev.env
rockiotlistener:
depends_on:
- timescaledb
- rabbit1
- rockiot
env_file:
- rockiot.dev.env
rockiot_demo:
build: rockiot_demo
container_name: rockiot_demo_device1
env_file:
- common.env
- rockiot.dev.env
environment:
- DEVICE_ID=device1
- DEVICE_PASS=device1pass
- DEVICE_KEY=4OrcNTFSZUrYX6NqP0P3lz
- DEMO_IS_SSL=True
- WAIT_HOSTS=rabbit1:8883,rockiot:8000
depends_on:
- rockiot
- rockiot_ingest
volumes:
- $HOME/docker/certificates/:/certs/
networks:
- app-tier
# pgadmin:
# image: biarms/pgadmin4:4.21
# container_name: rockiot_pgadmin
# ports:
# - "5050:5050"
# depends_on:
# - timescaledb
# env_file:
# - common.env
# - rockiot.dev.env
# environment:
# - WAIT_HOSTS=timescaledb:5432,rockiot:8000
# volumes:
# - $HOME/docker/pgadmin/data:/var/lib/pgadmin
# networks:
# - app-tier
#
# postgresexporter:
# image: quay.io/prometheuscommunity/postgres-exporter
# container_name: postgres_exporter
# ports:
# - "9187:9187"
# depends_on:
# - timescaledb
# - rockiot
# env_file:
# - db.env
# - common.env
# - rockiot.dev.env
# environment:
# - WAIT_HOSTS=timescaledb:5432,rockiot:8000
# - DATA_SOURCE_USER=postgres
# - DATA_SOURCE_PASS=postgres
# - DATA_SOURCE_URI=timescaledb:5432/postgres?sslmode=disable
# networks:
# - app-tier