- move NestJS app into server/ subdirectory - add client/ React+TypeScript (Vite) app with Hello World - update docker-compose to build and run both services - add root package.json declaring npm workspaces - update .gitignore to cover node_modules and dist at all depths
24 lines
458 B
YAML
24 lines
458 B
YAML
services:
|
|
server:
|
|
build:
|
|
context: ./server
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "13000:3000"
|
|
env_file:
|
|
- .env
|
|
volumes:
|
|
# persist SQLite database across restarts
|
|
- ./data:/app/data
|
|
# mount key files into the container
|
|
- ./keys:/app/keys
|
|
restart: unless-stopped
|
|
|
|
client:
|
|
build:
|
|
context: .
|
|
dockerfile: client/Dockerfile
|
|
ports:
|
|
- "13001:80"
|
|
restart: unless-stopped
|