There is a supplied docker image to make deploying a server as a container easier.
Docker Compose
Using the already build docker image hosting your own Atuin can be done using the supplied docker-compose file.
Create a .env file next to docker-compose.yml with contents like this:
Create a docker-compose.yml:
Start the services using docker compose:
Using systemd to manage your atuin server
The following systemd unit file to manage your docker-compose managed service:
Start and enable the service with:
Check if its running with:
Creating backups of the Postgres database
You can add another service to your docker-compose.yml file to have it run daily backups. It should look like this:
This will create daily backups of your database for that additional layer of comfort.
PLEASE NOTE: The ./db_dumps mount MUST be a POSIX-compliant filesystem to store the backups (mainly with support for hardlinks and softlinks). So filesystems like VFAT, EXFAT, SMB/CIFS, … can’t be used with this docker image. See https://github.com/prodrigestivill/docker-postgres-backup-local for more details on how this works. There are additional settings for the number of backups retained, etc., all explained on the linked page.