-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
docker-compose.yml
52 lines (48 loc) · 1.34 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
services:
# listens to mqtt packets and saves to database
meshtastic-mqtt:
container_name: meshtastic-mqtt
depends_on:
database:
condition: service_healthy
build:
context: .
dockerfile: ./Dockerfile
command: /app/docker/mqtt.sh
environment:
DATABASE_URL: "mysql://root:password@database:3306/meshtastic-map?connection_limit=100"
MQTT_OPTS: "" # add any custom mqtt.js options here
# runs the web map ui
meshtastic-map:
container_name: meshtastic-map
depends_on:
database:
condition: service_healthy
build:
context: .
dockerfile: ./Dockerfile
command: /app/docker/map.sh
ports:
- 8080:8080/tcp
environment:
DATABASE_URL: "mysql://root:password@database:3306/meshtastic-map?connection_limit=100"
MAP_OPTS: "" # add any custom index.js options here
# runs the database to store everything from mqtt
database:
container_name: database
image: bitnami/mariadb
ports:
- 3306:3306/tcp
environment:
MARIADB_DATABASE: "meshtastic-map"
MARIADB_ROOT_PASSWORD: "password"
volumes:
- database_data:/bitnami/mariadb
healthcheck:
test: ['CMD', '/opt/bitnami/scripts/mariadb/healthcheck.sh']
interval: 15s
timeout: 5s
retries: 6
start_interval: 5s
volumes:
database_data: