No custom images to maintain. docker-compose mounts the repo directly into the stock node container.
15 lines
304 B
YAML
15 lines
304 B
YAML
services:
|
|
forge:
|
|
image: node:22-slim
|
|
container_name: forge-console
|
|
working_dir: /app
|
|
command: >
|
|
sh -c "cd web && npm install --production --silent && node server.js"
|
|
ports:
|
|
- "3000:3000"
|
|
env_file:
|
|
- .env
|
|
volumes:
|
|
- .:/app
|
|
restart: unless-stopped
|