Linux
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 9
services:
tobealert-backend:
image: tobek8s/tobealert-backend:1.0.13-rc
container_name: tobealert-backend
network_mode: host
environment:
ADMIN_USER: tbadmin
ADMIN_PASSWORD: tbadmin
DATABASE_URL: postgres://$USERNAME:$PASSWORD@$HOSTNAME:$PORT/tobealert
TIMEZONE: Europe/Madrid
ports:
- "9000:9000"
volumes:
- /etc/tobealert/config:/tobealert/config
- /opt/backups/tobealert:/tobealert/backups
- tools_data:/tobealert/tools
- license_data:/tobealert/license
- instructions_data:/tobealert/instructions
restart: unless-stopped
tobealert-frontend:
image: tobek8s/tobealert-frontend:1.0.1
container_name: tobealert-frontend
network_mode: host
environment:
BASE_URL: http://localhost
API_URL: http://localhost:9000/api
ports:
- "80:80"
restart: unless-stopped
volumes:
tools_data:
instructions_data:
license_data:
If you want to deploy a container with PostgreSQL alongside ToBeAlert
services:
tobealert-bbdd:
image: postgres:17.5-alpine
container_name: tobealert-bbdd
network_mode: host
environment:
POSTGRES_USER: tobealert
POSTGRES_PASSWORD: tobealert
POSTGRES_DB: tobealert
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
tobealert-backend:
image: tobek8s/tobealert-backend:1.0.13-rc
container_name: tobealert-backend
network_mode: host
environment:
ADMIN_USER: tbadmin
ADMIN_PASSWORD: tbadmin
DATABASE_URL: postgres://tobealert:tobealert@tobealert-bbdd:5432/tobealert
TIMEZONE: Europe/Madrid
ports:
- "9000:9000"
volumes:
- /etc/tobealert/config:/tobealert/config
- /opt/backups/tobealert:/tobealert/backups
- tools_data:/tobealert/tools
- license_data:/tobealert/license
- instructions_data:/tobealert/instructions
depends_on:
tobealert-bbdd:
condition: service_healthy
restart: unless-stopped
tobealert-frontend:
image: tobek8s/tobealert-frontend:1.0.1
container_name: tobealert-frontend
network_mode: host
environment:
BASE_URL: http://localhost
API_URL: http://localhost:9000/api
ports:
- "80:80"
restart: unless-stopped
volumes:
postgres_data:
tools_data:
instructions_data:
license_data:
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:
