-
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
76 lines (70 loc) · 1.58 KB
/
docker-compose.yml
File metadata and controls
76 lines (70 loc) · 1.58 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
services:
postgres:
image: postgres:16
restart: unless-stopped
environment:
POSTGRES_DB: meshinfo
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
ports:
- "5432:5432"
volumes:
- meshinfo_pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d meshinfo"]
interval: 5s
timeout: 5s
retries: 20
mqtt:
container_name: mqtt
image: eclipse-mosquitto:latest
ports:
- 1883:1883
volumes:
- ./mosquitto/data:/mosquitto/data:rw
- ./mosquitto/config:/mosquitto/config:rw
restart: unless-stopped
meshinfo:
image: ghcr.io/meshaddicts/meshinfo:latest
volumes:
- ./config.json:/app/config.json
- ./output:/app/output
- ./postgres:/app/postgres:ro
environment:
- PYTHONUNBUFFERED=1
ports:
- 9000:9000
restart: unless-stopped
depends_on:
- postgres
- mqtt
frontend:
image: ghcr.io/meshaddicts/meshinfo-spa:latest
ports:
- 8000:80
env_file:
- path: ./frontend/.env
required: false
environment:
NODE_ENV: production
restart: unless-stopped
caddy:
build:
context: .
dockerfile: Dockerfile.caddy
ports:
- 80:80
- 443:443
volumes:
- ./caddy/data:/data/caddy
- ./Caddyfile:/etc/caddy/Caddyfile
- ./output/static-html:/srv
- ./public/images:/srv/images
environment:
- CADDY_AGREE=true
restart: unless-stopped
depends_on:
- meshinfo
- frontend
volumes:
meshinfo_pgdata: