This Docker container makes it easy to get an instance of Observium Community Edition up and running. Learn more about Observium: https://observium.org/
Create the MySQL database:
mysql -u root -p <mysql root password>
mysql> CREATE DATABASE observium;
mysql> GRANT ALL PRIVILEGES ON observium.* TO 'observium'@'localhost' -> IDENTIFIED BY '<password>';
Pull image:
sudo docker pull zcalusic/observium-ce
Edit docker-compose.yml to suit your environment, then run container:
sudo docker-compose up -d
Create initial user:
sudo docker exec -it <container_name> /opt/observium/adduser.php <username> <password> 10
-
TZ
- Timezone (default:
Etc/UTC
).
- Timezone (default:
-
DB_HOST
- MySQL database host (default:
127.0.0.1
).
- MySQL database host (default:
-
DB_PORT
- MySQL database port (default:
3306
).
- MySQL database port (default:
-
DB_USER
- MySQL database username (default:
username
).
- MySQL database username (default:
-
DB_PASS
- MySQL database password (default:
password
).
- MySQL database password (default:
-
DB_NAME
- MySQL database name (default:
observium
).
- MySQL database name (default:
-
LISTEN_ADDR
- Nginx listen address:port (default:
80
).
- Nginx listen address:port (default:
-
BASE_URL
- Observium base URL (default:
http://observium.example.com/
).
- Observium base URL (default:
-
PHP_MEMORY_LIMIT
- PHP memory limit (default:
256M
).
- PHP memory limit (default:
sudo make docker_build