- package.json with dependencies and scripts for development - postcss.config.js for Tailwind CSS and autoprefixer - main App component with routing for Trips and Items pages - API functions for fetching trips and items - components for item listing, item rows, search bar, and tag filtering - ItemsPage to manage items with search and tag filtering - TripsPage to display trips and associated items - Tailwind CSS and TypeScript settings
40 lines
828 B
YAML
40 lines
828 B
YAML
|
|
version: "3.9"
|
|
services:
|
|
db:
|
|
image: postgres:15-alpine
|
|
environment:
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_DB: postgres
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- db_data:/var/lib/postgresql/data
|
|
backend:
|
|
build:
|
|
context: ./backend
|
|
dockerfile: Dockerfile
|
|
depends_on:
|
|
- db
|
|
ports:
|
|
- "8000:8000"
|
|
volumes:
|
|
- ./:/app
|
|
environment:
|
|
- PYTHONUNBUFFERED=1
|
|
frontend:
|
|
build:
|
|
context: ./frontend
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "5173:5173"
|
|
volumes:
|
|
- ./frontend:/app
|
|
- /app/node_modules # anonymes Volume → trennt node_modules von Host
|
|
environment:
|
|
- CHOKIDAR_USEPOLLING=true # für Hot-Reload in Docker nötig
|
|
stdin_open: true
|
|
tty: true
|
|
volumes:
|
|
db_data:
|