mirror of
https://github.com/rodneyosodo/homelab.git
synced 2026-08-07 07:15:03 +00:00
f5051c6028
Signed-off-by: Rodney Osodo <socials@rodneyosodo.com>
47 lines
1.2 KiB
YAML
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
|