forked from MeshAddicts/meshinfo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (54 loc) · 1.19 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
53
54
55
56
57
58
services:
postgres:
image: postgres:latest
volumes:
- ./postgres/data:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=password
restart: always
mqtt:
container_name: mqtt
image: eclipse-mosquitto:latest
ports:
- 1883:1883
volumes:
- ./mosquitto/data:/mosquitto/data:rw
- ./mosquitto/config:/mosquitto/config:rw
restart: always
meshinfo:
image: ghcr.io/meshaddicts/meshinfo:latest
volumes:
- ./config.json:/app/config.json
- ./output:/app/output
environment:
- PYTHONUNBUFFERED=1
ports:
- 9000:9000
restart: always
depends_on:
- postgres
- mqtt
frontend:
image: ghcr.io/meshaddicts/meshinfo-spa:latest
ports:
- 8000:80
environment:
- VITE_API_BASE_URL=/api
- NODE_ENV=production
restart: always
caddy:
image: caddy:latest
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: always
depends_on:
- meshinfo
- frontend