26 lines
752 B
YAML
26 lines
752 B
YAML
# Base compose file — commit to git.
|
|
# Override with .env (copy from .env.example) or docker-compose.override.yml (gitignored).
|
|
|
|
services:
|
|
floter-design:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
args:
|
|
PORT: ${PORT:-3001}
|
|
container_name: floter-design
|
|
restart: unless-stopped
|
|
ports:
|
|
- "${PORT:-3001}:${PORT:-3001}"
|
|
environment:
|
|
NODE_ENV: production
|
|
PORT: ${PORT:-3001}
|
|
HOST: 0.0.0.0
|
|
volumes:
|
|
- ./logs:/app/logs
|
|
healthcheck:
|
|
test: ["CMD", "node", "-e", "require('http').get('http://localhost:' + (process.env.PORT || 3001), (r) => { process.exit(r.statusCode === 200 ? 0 : 1); })"]
|
|
interval: 30s
|
|
timeout: 3s
|
|
retries: 3
|
|
start_period: 5s
|