chore: update Docker images to new repository and enable Watchtower for automatic updates

This commit is contained in:
Anish Sarkar 2026-02-26 18:39:24 +05:30
parent 4f59e2c1f9
commit 35025bf0c5
2 changed files with 14 additions and 6 deletions

View file

@ -90,7 +90,7 @@ For Docker Compose and other deployment options, see the [Docker Installation do
**Update (recommended — Watchtower):** **Update (recommended — Watchtower):**
```bash ```bash
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock nickfedor/watchtower --run-once --label-filter "com.docker.compose.project=surfsense" docker run --rm -v /var/run/docker.sock:/var/run/docker.sock nickfedor/watchtower --run-once --label-enable
``` ```
**Update (manual):** **Update (manual):**

View file

@ -43,7 +43,7 @@ services:
retries: 5 retries: 5
backend: backend:
image: ghcr.io/modsetter/surfsense-backend:${SURFSENSE_VERSION:-latest} image: ghcr.io/anishsarkar22/surfsense-backend:${SURFSENSE_VERSION:-latest}
ports: ports:
- "${BACKEND_PORT:-8000}:8000" - "${BACKEND_PORT:-8000}:8000"
volumes: volumes:
@ -68,6 +68,8 @@ services:
# DAYTONA_API_URL: ${DAYTONA_API_URL:-https://app.daytona.io/api} # DAYTONA_API_URL: ${DAYTONA_API_URL:-https://app.daytona.io/api}
# DAYTONA_TARGET: ${DAYTONA_TARGET:-us} # DAYTONA_TARGET: ${DAYTONA_TARGET:-us}
SERVICE_ROLE: api SERVICE_ROLE: api
labels:
- "com.centurylinklabs.watchtower.enable=true"
depends_on: depends_on:
db: db:
condition: service_healthy condition: service_healthy
@ -76,7 +78,7 @@ services:
restart: unless-stopped restart: unless-stopped
celery_worker: celery_worker:
image: ghcr.io/modsetter/surfsense-backend:${SURFSENSE_VERSION:-latest} image: ghcr.io/anishsarkar22/surfsense-backend:${SURFSENSE_VERSION:-latest}
volumes: volumes:
- shared_temp:/shared_tmp - shared_temp:/shared_tmp
env_file: env_file:
@ -98,10 +100,12 @@ services:
condition: service_healthy condition: service_healthy
backend: backend:
condition: service_started condition: service_started
labels:
- "com.centurylinklabs.watchtower.enable=true"
restart: unless-stopped restart: unless-stopped
celery_beat: celery_beat:
image: ghcr.io/modsetter/surfsense-backend:${SURFSENSE_VERSION:-latest} image: ghcr.io/anishsarkar22/surfsense-backend:${SURFSENSE_VERSION:-latest}
env_file: env_file:
- .env - .env
environment: environment:
@ -118,10 +122,12 @@ services:
condition: service_healthy condition: service_healthy
celery_worker: celery_worker:
condition: service_started condition: service_started
labels:
- "com.centurylinklabs.watchtower.enable=true"
restart: unless-stopped restart: unless-stopped
# flower: # flower:
# image: ghcr.io/modsetter/surfsense-backend:${SURFSENSE_VERSION:-latest} # image: ghcr.io/anishsarkar22/surfsense-backend:${SURFSENSE_VERSION:-latest}
# ports: # ports:
# - "${FLOWER_PORT:-5555}:5555" # - "${FLOWER_PORT:-5555}:5555"
# env_file: # env_file:
@ -155,7 +161,7 @@ services:
retries: 5 retries: 5
frontend: frontend:
image: ghcr.io/modsetter/surfsense-web:${SURFSENSE_VERSION:-latest} image: ghcr.io/anishsarkar22/surfsense-web:${SURFSENSE_VERSION:-latest}
ports: ports:
- "${FRONTEND_PORT:-3000}:3000" - "${FRONTEND_PORT:-3000}:3000"
environment: environment:
@ -165,6 +171,8 @@ services:
NEXT_PUBLIC_ETL_SERVICE: ${ETL_SERVICE:-DOCLING} NEXT_PUBLIC_ETL_SERVICE: ${ETL_SERVICE:-DOCLING}
NEXT_PUBLIC_DEPLOYMENT_MODE: ${DEPLOYMENT_MODE:-self-hosted} NEXT_PUBLIC_DEPLOYMENT_MODE: ${DEPLOYMENT_MODE:-self-hosted}
NEXT_PUBLIC_ELECTRIC_AUTH_MODE: ${NEXT_PUBLIC_ELECTRIC_AUTH_MODE:-insecure} NEXT_PUBLIC_ELECTRIC_AUTH_MODE: ${NEXT_PUBLIC_ELECTRIC_AUTH_MODE:-insecure}
labels:
- "com.centurylinklabs.watchtower.enable=true"
depends_on: depends_on:
- backend - backend
- electric - electric