Files
tsumugu/docker-compose.dev-env.yml
T
LarsandCursor cbd45a8997
Deploy Development / deploy (push) Successful in 26s
Test Suite / pytest-backend (push) Successful in 1m35s
Test Suite / smoke-dev (push) Successful in 1s
Test Suite / frontend-build (push) Successful in 9s
Kennzeichne die Entwicklungsumgebung in der Oberflaeche, damit sie sich von Produktion unterscheiden laesst.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-17 22:25:45 +02:00

84 lines
2.3 KiB
YAML

# Server development stack: /home/lars/docker/tsumugu-dev
# No fixed container_name — Compose prefixes with the project name.
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_DB: "${DB_NAME:-tsumugu_dev}"
POSTGRES_USER: "${DB_USER:-tsumugu_dev}"
POSTGRES_PASSWORD: "${DB_PASSWORD:-dev_password_change_me}"
volumes:
- dev-tsumugu-db-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USER:-tsumugu_dev} -d ${DB_NAME:-tsumugu_dev}"]
interval: 5s
timeout: 5s
retries: 10
restart: unless-stopped
networks:
- dev-tsumugu-network
backend:
build:
context: ./backend
dockerfile: Dockerfile
environment:
TSUMUGU_ENV: "${TSUMUGU_ENV:-development}"
DB_HOST: postgres
DB_PORT: "5432"
DB_NAME: "${DB_NAME:-tsumugu_dev}"
DB_USER: "${DB_USER:-tsumugu_dev}"
DB_PASSWORD: "${DB_PASSWORD:-dev_password_change_me}"
APP_URL: "${APP_URL:-https://dev.tsumugu.jinkendo.de}"
ALLOWED_ORIGINS: "${ALLOWED_ORIGINS:-https://dev.tsumugu.jinkendo.de,http://192.168.2.49:3094,http://localhost:3094}"
MEDIA_ROOT: /data/media
PAPERLESS_MEDIA_ROOT: /paperless-media
SEED_DEMO: "${SEED_DEMO:-false}"
volumes:
- dev-tsumugu-media:/data/media
- ${PAPERLESS_MEDIA_HOST:-/media/lars/paperless/media}:/paperless-media:ro
ports:
- "127.0.0.1:${TSUMUGU_BACKEND_PORT:-8094}:8000"
depends_on:
postgres:
condition: service_healthy
healthcheck:
test:
[
"CMD",
"python",
"-c",
"import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/api/health')",
]
interval: 10s
timeout: 5s
retries: 12
start_period: 20s
restart: unless-stopped
networks:
- dev-tsumugu-network
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
args:
VITE_TSUMUGU_ENV: development
ports:
- "${TSUMUGU_FRONTEND_PORT:-3094}:80"
depends_on:
backend:
condition: service_healthy
restart: unless-stopped
networks:
- dev-tsumugu-network
volumes:
dev-tsumugu-db-data:
dev-tsumugu-media:
networks:
dev-tsumugu-network:
driver: bridge