first commit
This commit is contained in:
commit
b47f825d54
83 changed files with 10016 additions and 0 deletions
29
docker-compose.yml
Normal file
29
docker-compose.yml
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
services:
|
||||
web:
|
||||
build:
|
||||
context: .
|
||||
target: prod
|
||||
environment:
|
||||
- HANDIN_ADMIN_TOKEN=${HANDIN_ADMIN_TOKEN:?Set HANDIN_ADMIN_TOKEN}
|
||||
- HANDIN_SITE_TITLE=${HANDIN_SITE_TITLE:-Untitled Site}
|
||||
- HANDIN_DATA_DIR=/data
|
||||
volumes:
|
||||
- handin-data:/data
|
||||
|
||||
frontend:
|
||||
image: node:20-alpine
|
||||
working_dir: /app
|
||||
command: sh -c "npm install && npm run dev -- --host"
|
||||
ports:
|
||||
- "5174:5174"
|
||||
environment:
|
||||
- API_URL=http://web:8000
|
||||
volumes:
|
||||
- ./frontend:/app
|
||||
- frontend-node-modules:/app/node_modules
|
||||
depends_on:
|
||||
- web
|
||||
|
||||
volumes:
|
||||
handin-data:
|
||||
frontend-node-modules:
|
||||
Loading…
Add table
Add a link
Reference in a new issue