build(frontend): replace create-react-app with vite (#272)

This commit is contained in:
Julian Tölle 2023-05-07 04:05:11 +02:00 committed by GitHub
parent 8721fd101d
commit eb8fe11be6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 4700 additions and 22943 deletions

View file

@ -54,14 +54,16 @@ services:
build:
context: .
target: build-frontend
command: ["npm", "run", "start"]
command: ["npm", "run", "start", "--", "--host"]
volumes:
- ./frontend/vite.config.js:/app/frontend/vite.config.js:ro
- ./frontend/postcss.config.js:/app/frontend/postcss.config.js:ro
- ./frontend/tailwind.config.js:/app/frontend/tailwind.config.js:ro
- ./frontend/index.html:/app/frontend/index.html:ro
- ./frontend/src:/app/frontend/src:ro
- ./frontend/public:/app/frontend/public:ro
ports:
- 3000
- 5173
labels:
- "traefik.enable=true" # Enable reverse-proxy for this service
- "traefik.http.routers.frontend.rule=PathPrefix(`/`)"