Files
rmtPocketWatcher/deploy/portainer-stack.yml
HRiggs b7c2e0fc24
Some checks failed
Deploy Backend to Docker / deploy (push) Failing after 6m13s
Deploy Backend to Docker / deploy-portainer (push) Has been skipped
Tons of Stuff
2025-12-03 20:19:40 -05:00

53 lines
1.5 KiB
YAML

version: '3.8'
# Portainer Stack Configuration
# This file is used when deploying via Portainer's Git repository feature
services:
postgres:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER:-rmtpw}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB:-rmtpocketwatcher}
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- rmtpw-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-rmtpw} -d ${POSTGRES_DB:-rmtpocketwatcher}"]
interval: 10s
timeout: 5s
retries: 5
backend:
image: ${DOCKER_REGISTRY:-ghcr.io}/${DOCKER_IMAGE:-lambdabanking/rmtpocketwatcher-backend}:${IMAGE_TAG:-latest}
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
environment:
DATABASE_URL: postgresql://${POSTGRES_USER:-rmtpw}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB:-rmtpocketwatcher}?schema=public
PORT: ${BACKEND_PORT:-3000}
HOST: 0.0.0.0
NODE_ENV: production
SCRAPE_INTERVAL_MINUTES: ${SCRAPE_INTERVAL:-5}
SCRAPER_HEADLESS: "true"
SCRAPER_TIMEOUT: ${SCRAPER_TIMEOUT:-30000}
SCRAPER_MAX_RETRIES: ${SCRAPER_MAX_RETRIES:-3}
ports:
- "${BACKEND_PORT:-3000}:3000"
networks:
- rmtpw-network
labels:
- "com.centurylinklabs.watchtower.enable=true"
volumes:
postgres_data:
driver: local
networks:
rmtpw-network:
driver: bridge