-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
92 lines (86 loc) · 2.29 KB
/
compose.yml
File metadata and controls
92 lines (86 loc) · 2.29 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
name: itea-weather-station
services:
weather-edge-processor:
build:
context: ./data-processor
dockerfile: Dockerfile
container_name: weather-edge-processor
env_file:
- .env
restart: unless-stopped
networks:
- weather-network
database:
env_file:
- .env
image: influxdb:2
container_name: weatherdb
ports:
- "8086:8086"
volumes:
- ./influxdb2-data:/var/lib/influxdb2
- ./influxdb2-config:/etc/influxdb2
environment:
DOCKER_INFLUXDB_INIT_MODE: setup
DOCKER_INFLUXDB_INIT_USERNAME: ${INFLUXDB_USERNAME}
DOCKER_INFLUXDB_INIT_PASSWORD: ${INFLUXDB_PASSWORD}
DOCKER_INFLUXDB_INIT_ORG: ${INFLUXDB_ORG}
DOCKER_INFLUXDB_INIT_BUCKET: ${INFLUXDB_BUCKET}
restart: unless-stopped
networks:
- weather-network
mosquitto:
image: eclipse-mosquitto:latest
container_name: mqtt-broker
ports:
- "1883:1883" #default mqtt port
- "9001:9001" #default websocket port
volumes:
- ./mosquitto-config:/mosquitto/config
- ./mosquitto-init:/mosquitto-init
entrypoint: ["/mosquitto-init/entrypoint.sh"]
networks:
- weather-network
restart: "no"
stdin_open: true
tty: true
weather-edge-dashboard:
env_file:
- .env
image: pancakeslmao/weather-edge-dashboard:latest
container_name: weather-edge-dashboard
ports:
- "3000:3000"
volumes:
- ./nextjs:/weather-edge-hub/
environment:
JWT_SECRET: ${JWT_SECRET}
JWT_EXPIRES_IN: ${JWT_EXPIRES_IN}
ADMIN_USERNAME: ${ADMIN_USERNAME}
ADMIN_NAME: ${ADMIN_NAME}
ADMIN_PASSWORD_HASH: ${ADMIN_PASSWORD_HASH}
ADMIN_EMAIL: ${ADMIN_EMAIL}
ADMIN_ROLE: ${ADMIN_ROLE}
TEST_USERNAME: ${TEST_USERNAME}
TEST_NAME: ${TEST_NAME}
TEST_PASSWORD_HASH: ${TEST_PASSWORD_HASH}
TEST_EMAIL: ${TEST_EMAIL}
TEST_ROLE: ${TEST_ROLE}
INFLUXDB_ROUTE: ${INFLUXDB_ROUTE}
INFLUXDB_TOKEN: ${INFLUXDB_TOKEN}
INFLUXDB_ORG: ${INFLUXDB_ORG}
INFLUXDB_BUCKET: ${INFLUXDB_BUCKET}
depends_on:
- database
networks:
- weather-network
restart: unless-stopped
networks:
weather-network:
driver: bridge
volumes:
influxdb2-data:
influxdb2-config:
mosquitto-config:
mosquitto-data:
mosquitto-log: