Files
homelab/docker-compose/atuin/docker-compose.yaml
T
Rodney Osodo f5051c6028 chore(docker): prefix images with docker.io
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com>
2026-06-02 16:00:10 +03:00

47 lines
1.2 KiB
YAML

services:
atuin:
container_name: atuin
image: ghcr.io/atuinsh/atuin:18.16.1
restart: unless-stopped
networks:
- homelab-network
security_opt:
- no-new-privileges:true
command: start
volumes:
- ~/docker-volumes/atuin/config:/config
depends_on:
- atuin-db
ports:
- ${ATUIN_PORT}:${ATUIN_PORT}
environment:
- ATUIN_HOST=${ATUIN_HOST}
- ATUIN_PORT=${ATUIN_PORT}
- ATUIN_OPEN_REGISTRATION=${ATUIN_OPEN_REGISTRATION}
- ATUIN_DB_URI=${ATUIN_POSTGRES_URL}
- RUST_LOG=${ATUIN_RUST_LOG}
atuin-db:
container_name: atuin-db
image: docker.io/postgres:16.1
restart: unless-stopped
networks:
- homelab-network
security_opt:
- no-new-privileges:true
volumes:
- ~/docker-volumes/atuin/db:/var/lib/postgresql/data
environment:
- POSTGRES_USER=${ATUIN_POSTGRES_USER}
- POSTGRES_PASSWORD=${ATUIN_POSTGRES_PASSWORD}
- POSTGRES_DB=${ATUIN_POSTGRES_DB}
healthcheck:
test:
[
"CMD-SHELL",
"pg_isready -U '${ATUIN_POSTGRES_USER}' -d '${ATUIN_POSTGRES_DB}'",
]
interval: 5s
timeout: 5s
retries: 5