kiosk-guestbook/docker-compose.yml
Steve Dogiakos 581a96d634 Lint and update docker-compose.yml
- Fixed port variable interpolation to use ${PORT:-8000} for a default value.
- Updated volume configuration to use a named volume (guestbook_data) mounted at /data.
- Improved YAML formatting for clarity.
2025-04-01 21:53:25 -06:00

16 lines
325 B
YAML

version: "3.8"
services:
guestbook:
build: .
container_name: guestbook
ports:
- "${PORT:-8000}:8000"
env_file:
- .env
volumes:
# Mount a named volume at /data so that the database file (configured in .env) persists
- /home/steve/kiosk-guestbook:/data
volumes:
guestbook_data: