-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
docker-compose-dev.yml
63 lines (59 loc) · 1.28 KB
/
docker-compose-dev.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
59
60
61
62
63
services:
caddy:
image: caddy:latest
ports:
- 8000:80
volumes:
- ./caddy/data:/data/caddy
- ./Caddyfile.dev:/etc/caddy/Caddyfile
- ./output/static-html:/srv
- ./spa:/srv/next
- ./public/images:/srv/images
environment:
- CADDY_AGREE=true
restart: always
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
frontend:
build:
context: .
dockerfile: Dockerfile.spa.dev
ports:
- 5173:5173
environment:
- VITE_API_BASE_URL=http://localhost:9000
- NODE_ENV=dev
restart: always
meshinfo:
build:
context: .
dockerfile: Dockerfile
volumes:
- ./config.json:/app/config.json
- ./output:/app/output
- ./templates:/app/templates
- ./spa:/app/spa
ports:
- 9000:9000
environment:
- PYTHONUNBUFFERED=1
- ALLOW_ORIGINS=*
restart: always
depends_on:
- caddy
- postgres
- mqtt