mirror of
https://github.com/arthur-pbty/syncfilm.git
synced 2026-06-03 23:36:38 +02:00
17 lines
487 B
YAML
17 lines
487 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: npm start |