Fix Portainer file mounts
This commit is contained in:
@@ -1,14 +1,13 @@
|
||||
services:
|
||||
database:
|
||||
image: postgres:16-alpine
|
||||
build:
|
||||
context: ./database
|
||||
environment:
|
||||
POSTGRES_DB: ${POSTGRES_DB:-plasttrack}
|
||||
POSTGRES_USER: ${POSTGRES_USER:-plasttrack}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-plasttrack}
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
- ./database/init.sql:/docker-entrypoint-initdb.d/01-init.sql:ro
|
||||
- ./database/seed.sql:/docker-entrypoint-initdb.d/02-seed.sql:ro
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
|
||||
interval: 5s
|
||||
@@ -16,12 +15,11 @@ services:
|
||||
retries: 20
|
||||
|
||||
mqtt:
|
||||
image: eclipse-mosquitto:2
|
||||
build:
|
||||
context: ./mqtt
|
||||
ports:
|
||||
- "1883:1883"
|
||||
- "9001:9001"
|
||||
volumes:
|
||||
- ./mqtt/mosquitto.conf:/mosquitto/config/mosquitto.conf:ro
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "mosquitto_sub -h localhost -p 1883 -t '$$SYS/broker/version' -C 1 -W 3 >/dev/null 2>&1"]
|
||||
interval: 10s
|
||||
|
||||
Reference in New Issue
Block a user