Files
mwy/docker-compose.yml
flowerstonezl c90b10cd5a first commit
2026-05-11 19:34:35 +08:00

28 lines
731 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 一键启动docker compose up --build
# 前端 http://localhost:8080 后端管理 http://localhost:8000/admin/
services:
backend:
build: ./backend
ports:
- "8000:8000"
volumes:
- backend_data:/data
environment:
DJANGO_SECRET_KEY: ${DJANGO_SECRET_KEY:-dev-secret-change-me}
DJANGO_DEBUG: "false"
DJANGO_ALLOWED_HOSTS: localhost,127.0.0.1,backend
CORS_ALLOWED_ORIGINS: http://localhost:8080,http://127.0.0.1:8080
CSRF_TRUSTED_ORIGINS: http://localhost:8080,http://127.0.0.1:8080
SQLITE_PATH: /data/db.sqlite3
MEDIA_ROOT: /data/media
frontend:
build: ./frontend
ports:
- "8080:80"
depends_on:
- backend
volumes:
backend_data: