Files
syncfilm/docker-compose.yml
T
2025-09-13 23:56:41 +02:00

17 lines
510 B
YAML

version: "3.8"
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "${PORT:-3000}:${PORT:-3000}" # Map the container port to the host port
environment:
- NODE_ENV=${NODE_ENV:-production}
- PORT=${PORT:-3000}
- SOCKET_IO_PATH=${SOCKET_IO_PATH:-/socket.io}
- STATIC_FILES_PATH=${STATIC_FILES_PATH:-public}
volumes:
- .:/app # Mount the current directory to the container
command: sh -c "npm install && npm start"