-
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
79 lines (74 loc) · 1.78 KB
/
docker-compose-dev.yml
File metadata and controls
79 lines (74 loc) · 1.78 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
services:
caddy:
image: caddy:latest
ports:
- 8000:80
volumes:
- ./caddy/data:/data/caddy
- ./Caddyfile.dev:/etc/caddy/Caddyfile
- ./public/images:/srv/images
environment:
- CADDY_AGREE=true
restart: unless-stopped
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
start_period: 10s
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
frontend:
build:
context: .
dockerfile: Dockerfile.spa.dev
ports:
- 5173:5173
environment:
- VITE_API_BASE_URL=/api
- VITE_API_PROXY_TARGET=http://meshinfo:9000
- NODE_ENV=dev
restart: unless-stopped
meshinfo:
build:
context: .
dockerfile: Dockerfile
volumes:
- ./config.json:/app/config.json
- ./output:/app/output
- ./templates:/app/templates
- ./spa:/app/spa
- ./postgres:/app/postgres:ro
ports:
- 9000:9000
environment:
- PYTHONUNBUFFERED="1"
- ALLOW_ORIGINS="*""
restart: unless-stopped
depends_on:
caddy:
condition: service_started
postgres:
condition: service_healthy
mqtt:
condition: service_started
volumes:
meshinfo_pgdata: