Files
syncfilm/docker-compose.yml
T

18 lines
539 B
YAML

version: "3.8"
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "${PORT:-3000}:${PORT:-3000}" # Map the container port to the host port
restart: unless-stopped
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"