Skip to content

Instantly share code, notes, and snippets.

@initcron
Created September 22, 2025 15:31
Show Gist options
  • Save initcron/e389583ad967f3ff48a53611699bbb95 to your computer and use it in GitHub Desktop.
Save initcron/e389583ad967f3ff48a53611699bbb95 to your computer and use it in GitHub Desktop.
version: '3.8'
services:
tech-stack-advisor:
build: .
ports:
- "7860:7860"
environment:
- ENV=production
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:7860', timeout=5)"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
restart: unless-stopped
nginx:
image: nginx:alpine
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- tech-stack-advisor
restart: unless-stopped
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment