backend-template-modify
Some checks failed
Generate Client / generate-client (pull_request) Has been cancelled
Lint Backend / lint-backend (pull_request) Has been cancelled
Playwright Tests / changes (pull_request) Has been cancelled
Test Backend / test-backend (pull_request) Has been cancelled
Test Docker Compose / test-docker-compose (pull_request) Has been cancelled
Add to Project / Add to project (pull_request_target) Has been cancelled
Labels / labeler (pull_request_target) Has been cancelled
Latest Changes / latest-changes (pull_request_target) Has been cancelled
Playwright Tests / test-playwright (1, 4) (pull_request) Has been cancelled
Playwright Tests / test-playwright (2, 4) (pull_request) Has been cancelled
Playwright Tests / test-playwright (3, 4) (pull_request) Has been cancelled
Playwright Tests / test-playwright (4, 4) (pull_request) Has been cancelled
Playwright Tests / merge-playwright-reports (pull_request) Has been cancelled
Playwright Tests / alls-green-playwright (pull_request) Has been cancelled
Labels / check-labels (pull_request_target) Has been cancelled

This commit is contained in:
bbh
2025-07-29 23:56:16 +08:00
parent eb7c75e919
commit d054489a9a
97 changed files with 59 additions and 14859 deletions

View File

@@ -92,40 +92,40 @@ services:
- "1080:1080"
- "1025:1025"
frontend:
restart: "no"
ports:
- "5173:80"
build:
context: ./frontend
args:
- VITE_API_URL=http://localhost:8000
- NODE_ENV=development
# frontend:
# restart: "no"
# ports:
# - "5173:80"
# build:
# context: ./frontend
# args:
# - VITE_API_URL=http://localhost:8000
# - NODE_ENV=development
playwright:
build:
context: ./frontend
dockerfile: Dockerfile.playwright
args:
- VITE_API_URL=http://backend:8000
- NODE_ENV=production
ipc: host
depends_on:
- backend
- mailcatcher
env_file:
- .env
environment:
- VITE_API_URL=http://backend:8000
- MAILCATCHER_HOST=http://mailcatcher:1080
# For the reports when run locally
- PLAYWRIGHT_HTML_HOST=0.0.0.0
- CI=${CI}
volumes:
- ./frontend/blob-report:/app/blob-report
- ./frontend/test-results:/app/test-results
ports:
- 9323:9323
# playwright:
# build:
# context: ./frontend
# dockerfile: Dockerfile.playwright
# args:
# - VITE_API_URL=http://backend:8000
# - NODE_ENV=production
# ipc: host
# depends_on:
# - backend
# - mailcatcher
# env_file:
# - .env
# environment:
# - VITE_API_URL=http://backend:8000
# - MAILCATCHER_HOST=http://mailcatcher:1080
# # For the reports when run locally
# - PLAYWRIGHT_HTML_HOST=0.0.0.0
# - CI=${CI}
# volumes:
# - ./frontend/blob-report:/app/blob-report
# - ./frontend/test-results:/app/test-results
# ports:
# - 9323:9323
networks:
traefik-public: