force rewrited code
This commit is contained in:
38
docker-compose.yml
Normal file
38
docker-compose.yml
Normal file
@@ -0,0 +1,38 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
backend:
|
||||
build:
|
||||
context: ./backend/app
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- "8000:8000"
|
||||
volumes:
|
||||
- ./backend/app:/app
|
||||
# Cache for uv environments to speed up things inside container
|
||||
- uv-cache:/root/.cache/uv
|
||||
# Avoid overwriting container's installed venv with local dev venv
|
||||
- /app/.venv
|
||||
environment:
|
||||
- DATABASE_PATH=archivium.db
|
||||
- ALLOWED_ORIGINS=http://localhost:3000
|
||||
restart: unless-stopped
|
||||
|
||||
frontend:
|
||||
build:
|
||||
context: ./frontend
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- "3000:3000"
|
||||
volumes:
|
||||
- ./frontend:/app
|
||||
# Hide container's node_modules from local disk
|
||||
- /app/node_modules
|
||||
environment:
|
||||
- REACT_APP_API_URL=http://localhost:8000
|
||||
depends_on:
|
||||
- backend
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
uv-cache:
|
||||
Reference in New Issue
Block a user