-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (38 loc) · 1.08 KB
/
docker-compose.yml
File metadata and controls
40 lines (38 loc) · 1.08 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
services:
val-db-dev:
container_name: val-db-dev
restart: unless-stopped
image: postgres:16.8-alpine
volumes:
- ./.docker/postgres-localhost/data:/var/lib/postgresql/data
- ./postgres-init.sql:/docker-entrypoint-initdb.d/01-create-schemas.sql:ro
ports:
- '5432:5432'
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
healthcheck:
test: ["CMD-SHELL", "pg_isready -h localhost -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 5s
timeout: 10s
retries: 5
start_period: 10s
mqtt-dev:
image: eclipse-mosquitto
container_name: mqtt-dev
restart: unless-stopped
env_file:
- .env
volumes:
- ./mqtt/mosquitto.conf:/mosquitto/config/mosquitto.conf:ro
- ./mqtt/entrypoint.sh:/mosquitto/entrypoint.sh:ro
- mqtt_dev_data:/mosquitto/data
- mqtt_dev_log:/mosquitto/log
ports:
- "1883:1883"
- "9001:9001"
entrypoint: ["/mosquitto/entrypoint.sh"]
volumes:
mqtt_dev_data:
mqtt_dev_log: