Auditum
For system auditing, installation of Auditum is required. After installing the Docker image (auditumio/auditum:0.3.0), ensure the following steps are completed:
- Database and user creation: The information will be passed to the container via environment variables, so the names aren't mandatory.
- Run migrations: Inside the container, execute the command /usr/local/bin/auditum migrate.
- Port configuration: Ensure ports 8080 and 9090 are exposed and accessible to other services.
auditum:
image: auditumio/auditum:0.3.0
environment:
AUDITUM_store_type: postgres
AUDITUM_store_postgres_host: postgres
AUDITUM_store_postgres_port: 5432
AUDITUM_store_postgres_database: auditum #(criar banco)
AUDITUM_store_postgres_username: "auditum"
AUDITUM_store_postgres_password: "auditum"
AUDITUM_store_postgres_sslmode: disable
AUDITUM_store_postgres_logQueries: true #(opcional)
entrypoint: /bin/sh
command: -c "/usr/local/bin/auditum migrate && /usr/local/bin/auditum serve" #(roda as migrations)
depends_on:
- postgres
ports:
- 8000:8080
- 9000:9090