diff --git a/deploy/portainer-stack.yml b/deploy/portainer-stack.yml index 6a159ec..4045629 100644 --- a/deploy/portainer-stack.yml +++ b/deploy/portainer-stack.yml @@ -9,7 +9,7 @@ services: restart: unless-stopped environment: POSTGRES_USER: ${POSTGRES_USER:-rmtpw} - POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} + POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-pass} POSTGRES_DB: ${POSTGRES_DB:-rmtpocketwatcher} volumes: - postgres_data:/var/lib/postgresql/data @@ -22,14 +22,17 @@ services: retries: 5 backend: - image: ${DOCKER_REGISTRY:-ghcr.io}/${DOCKER_IMAGE:-lambdabanking/rmtpocketwatcher-backend}:${IMAGE_TAG:-latest} + build: + context: ./backend + dockerfile: Dockerfile + pull_policy: build 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} + PORT: 3000 HOST: 0.0.0.0 NODE_ENV: production SCRAPE_INTERVAL_MINUTES: ${SCRAPE_INTERVAL:-5} @@ -37,7 +40,7 @@ services: SCRAPER_TIMEOUT: ${SCRAPER_TIMEOUT:-30000} SCRAPER_MAX_RETRIES: ${SCRAPER_MAX_RETRIES:-3} ports: - - "${BACKEND_PORT:-3000}:3000" + - "3043:3000" networks: - rmtpw-network labels: