mirror of
https://github.com/hhftechnology/Dock-Dploy.git
synced 2026-03-09 07:13:43 -05:00
38 lines
1005 B
YAML
38 lines
1005 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
dock-dploy:
|
|
# Use the image from Docker Hub (replace YOUR_USERNAME with your Docker Hub username)
|
|
# image: ${DOCKERHUB_USERNAME:-your-username}/dock-dploy:latest
|
|
# Alternative: Use image from GitHub Container Registry
|
|
# image: ghcr.io/${GITHUB_REPOSITORY:-your-username/dock-dploy}:latest
|
|
|
|
# Uncomment below to build from local Dockerfile instead
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
|
|
container_name: dock-dploy
|
|
restart: unless-stopped
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
- NODE_ENV=production
|
|
# Optional: Add healthcheck
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:3000/"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|
|
# Optional: Resource limits
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: '1'
|
|
memory: 512M
|
|
reservations:
|
|
cpus: '0.5'
|
|
memory: 256M
|
|
|