28 lines
606 B
YAML
28 lines
606 B
YAML
|
|
version: '3.8'
|
||
|
|
|
||
|
|
services:
|
||
|
|
backend:
|
||
|
|
build:
|
||
|
|
context: .
|
||
|
|
dockerfile: Dockerfile
|
||
|
|
args:
|
||
|
|
- NODE_ENV=production
|
||
|
|
- PORT=5000
|
||
|
|
image: toptran-backend:production
|
||
|
|
container_name: toptran-backend-production
|
||
|
|
restart: unless-stopped
|
||
|
|
ports:
|
||
|
|
- "5000:5000"
|
||
|
|
env_file:
|
||
|
|
- .env.production
|
||
|
|
environment:
|
||
|
|
- NODE_ENV=production
|
||
|
|
volumes:
|
||
|
|
- ./logs:/app/logs
|
||
|
|
healthcheck:
|
||
|
|
test: ["CMD", "wget", "-qO", "/dev/null", "http://localhost:5000/sync/companies"]
|
||
|
|
interval: 30s
|
||
|
|
timeout: 10s
|
||
|
|
retries: 3
|
||
|
|
start_period: 40s
|