mirror of
https://github.com/rangermix/TwitchDropsMiner.git
synced 2026-05-26 07:08:04 +00:00
docker
This commit is contained in:
@@ -20,7 +20,6 @@ LABEL org.opencontainers.image.created="${BUILD_DATE}" \
|
||||
# Set environment variables
|
||||
ENV PYTHONUNBUFFERED=1 \
|
||||
PYTHONDONTWRITEBYTECODE=1 \
|
||||
DOCKER_ENV=1 \
|
||||
PORT=8080
|
||||
|
||||
# Set working directory
|
||||
|
||||
@@ -11,21 +11,4 @@ services:
|
||||
environment:
|
||||
# Set timezone (optional, defaults to UTC)
|
||||
- TZ=UTC
|
||||
# Docker environment flag
|
||||
- DOCKER_ENV=1
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8080/api/status')"]
|
||||
interval: 30s
|
||||
timeout: 3s
|
||||
retries: 3
|
||||
start_period: 10s
|
||||
# Optional: Limit resources
|
||||
# deploy:
|
||||
# resources:
|
||||
# limits:
|
||||
# cpus: '1'
|
||||
# memory: 512M
|
||||
# reservations:
|
||||
# cpus: '0.5'
|
||||
# memory: 256M
|
||||
|
||||
Reference in New Issue
Block a user