Skip to main content
Version: 1.0

Windows

To download and run ToBeAlert you will first need to log in to Docker hub:

docker login -u $your_username

Create a directory on any path of your choosing named ToBeAlert and download the latest docker-compose.yaml and change the highlighted lines.

If you have your own PostgreSQL​

Remember to change the highlighted lines, especially line 8

services:
tobealert-backend:
image: tobek8s/tobealert-backend:1.0.13-rc
container_name: tobealert-backend
environment:
ADMIN_USER: tbadmin
ADMIN_PASSWORD: tbadmin
DATABASE_URL: postgres://$USERNAME:$PASSWORD@$HOSTNAME:$PORT/tobealert
TIMEZONE: Europe/Madrid
ports:
- "9000:9000"
volumes:
- C:/tobealert/backups:/tobealert/backups
- C:/tobealert/config:/tobealert/config
- tools_data:/tobealert/tools
- license_data:/tobealert/license
- instructions_data:/tobealert/instructions
restart: unless-stopped
networks:
- tobealert-network

tobealert-frontend:
image: tobek8s/tobealert-frontend:1.0.1
container_name: tobealert-frontend
environment:
BASE_URL: http://localhost
API_URL: http://localhost:9000/api
ports:
- "80:80"
restart: unless-stopped
networks:
- tobealert-network

volumes:
tools_data:
instructions_data:
license_data:

networks:
tobealert-network:
driver: bridge

If you want to deploy a container with PostgreSQL alongside ToBeAlert​

services:
tobealert-bbdd:
image: postgres:17.5-alpine
container_name: tobealert-bbdd
environment:
POSTGRES_USER: tobealert
POSTGRES_PASSWORD: tobealert
POSTGRES_DB: tobealert
POSTGRES_HOST_AUTH_METHOD: trust
TZ: Europe/Madrid
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U tobealert"]
interval: 2s
timeout: 5s
retries: 5
restart: unless-stopped
networks:
- tobealert-network

tobealert-backend:
image: tobek8s/tobealert-backend:1.0.13-rc
container_name: tobealert-backend
environment:
ADMIN_USER: tbadmin
ADMIN_PASSWORD: tbadmin
DATABASE_URL: postgres://tobealert:tobealert@tobealert-bbdd:5432/tobealert
TIMEZONE: Europe/Madrid
ports:
- "9000:9000"
volumes:
- C:/tobealert/backups:/tobealert/backups
- C:/tobealert/config:/tobealert/config
- tools_data:/tobealert/tools
- license_data:/tobealert/license
- instructions_data:/tobealert/instructions
depends_on:
tobealert-bbdd:
condition: service_healthy
restart: unless-stopped
networks:
- tobealert-network

tobealert-frontend:
image: tobek8s/tobealert-frontend:1.0.1
container_name: tobealert-frontend
environment:
BASE_URL: http://localhost
API_URL: http://localhost:9000/api
ports:
- "80:80"
restart: unless-stopped
networks:
- tobealert-network

volumes:
postgres_data:
tools_data:
instructions_data:
license_data:

networks:
tobealert-network:
driver: bridge

Starting ToBeAlert​

To start ToBeAlert, run the following command from the docker-compose file's directory:

docker-compose up -d

And if you open a browser and go to your BASE_URL you will be greeted with this window:

greeting