generated from Randers-Kommune-Digitalisering/node-red-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (48 loc) · 1.15 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
version: "3.9"
services:
node-red:
build: node-red
networks:
- node_red
ports:
- "1880:1880"
environment:
DB_USER: root
DB_PASS: pass
DB_HOST: db
DB_PORT: 3306
DB_DATABASE: demo
DEV_ENVIROMENT : "true"
TZ: "Europe/Copenhagen"
# Fortæller node-red editoren hvilket flow.json den skal åbne og arbejde i
FLOWS: "/data/flows.json"
# Bind mount fra codespace til den kørende containers /data.
# Det gør det muligt at comitte ændringer i flows til repositoriet
volumes:
- "./node-red/:/data"
depends_on:
db:
condition: service_healthy
db:
image: mariadb:10.6.11
restart: always
environment:
MARIADB_ROOT_PASSWORD: pass
MARIADB_DATABASE: demo
TZ: "Europe/Copenhagen"
command: [
'--wait_timeout=90',
'--connect_timeout=60',
'--max_connections=1000'
]
healthcheck:
test: mysqladmin ping -h 127.0.0.1 -u root --password=pass
start_period: 5s
interval: 5s
timeout: 5s
retries: 55
networks:
- node_red
networks:
node_red:
name: node_red