-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
49 lines (45 loc) · 1.82 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
49 lines (45 loc) · 1.82 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
# ── Development Environment (ADR-029) ──────────────────────────────
# This file creates an isolated development stack.
# It MUST NOT share containers, volumes, or networks with docker-compose.yml.
#
# PostgreSQL uses defaults matching .env.development.
# Override via shell: DB_PASSWORD=xxx docker compose -f docker-compose.dev.yml up -d
#
# Usage: docker compose -f docker-compose.dev.yml up -d
services:
# ── MQTT Broker (Development) ────────────────────────────────────
dev-mosquitto:
image: eclipse-mosquitto:2@sha256:6f8d8a947c506f8a2290ec65cd4bd2bc7cb4d43fb5f6271f861cb013e2ef9797
container_name: mush2-dev-mosquitto
restart: unless-stopped
ports:
- "1884:1883"
volumes:
- ./docker/mosquitto/dev:/mosquitto/config:ro
- ./docker/mosquitto/certs:/mosquitto/certs:ro
- mush2-dev-mosquitto-data:/mosquitto/data
- mush2-dev-mosquitto-log:/mosquitto/log
networks:
- mush2-dev-internal
# ── PostgreSQL (Development) ─────────────────────────────────────
dev-postgres:
image: postgres:16-alpine@sha256:57c72fd2a128e416c7fcc499958864df5301e940bca0a56f58fddf30ffc07777
container_name: mush2-dev-postgres
restart: unless-stopped
environment:
POSTGRES_DB: ${DB_NAME:-mush2_dev}
POSTGRES_USER: ${DB_USER:-mush2_dev}
POSTGRES_PASSWORD: ${DB_PASSWORD:-mush2_dev_password}
ports:
- "5433:5432"
volumes:
- mush2-dev-pgdata:/var/lib/postgresql/data
networks:
- mush2-dev-internal
networks:
mush2-dev-internal:
driver: bridge
volumes:
mush2-dev-pgdata:
mush2-dev-mosquitto-data:
mush2-dev-mosquitto-log: