Files
scriptshare-cursor/docker-compose.yml

28 lines
571 B
YAML

version: '3.8'
services:
scriptshare:
build:
context: .
dockerfile: Dockerfile
ports:
- "3000:80"
environment:
- NODE_ENV=production
restart: unless-stopped
volumes:
- scriptshare_data:/usr/share/nginx/html
- scriptshare_logs:/var/log/nginx
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
volumes:
scriptshare_data:
driver: local
scriptshare_logs:
driver: local