mirror of
https://github.com/RealOrangeOne/infrastructure.git
synced 2026-07-17 16:35:58 +00:00
Deploy atuin
This commit is contained in:
parent
f6649c8559
commit
03296b6286
5 changed files with 65 additions and 0 deletions
|
|
@ -79,6 +79,7 @@
|
|||
- bsky
|
||||
- immich
|
||||
- freshrss
|
||||
- atuin
|
||||
|
||||
- hosts: ingress
|
||||
roles:
|
||||
|
|
|
|||
34
ansible/roles/atuin/files/docker-compose.yml
Normal file
34
ansible/roles/atuin/files/docker-compose.yml
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
services:
|
||||
atuin:
|
||||
image: ghcr.io/atuinsh/atuin:latest
|
||||
restart: unless-stopped
|
||||
command: server start
|
||||
environment:
|
||||
- TZ={{ timezone }}
|
||||
- ATUIN_DB_URI=postgres://atuin:atuin@db/atuin
|
||||
- ATUIN_HOST=0.0.0.0
|
||||
- RUST_LOG=info
|
||||
- ATUIN_OPEN_REGISTRATION=false
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.http.routers.atuin.rule=Host(`atuin.jakehoward.tech`)
|
||||
- traefik.http.services.atuin-atuin.loadbalancer.server.port=8888
|
||||
- traefik.http.routers.atuin.middlewares=tailscale-only@file
|
||||
depends_on:
|
||||
- db
|
||||
networks:
|
||||
- default
|
||||
- traefik
|
||||
|
||||
db:
|
||||
image: postgres:14-alpine
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /mnt/speed/dbs/postgres/atuin:/var/lib/postgresql/data
|
||||
environment:
|
||||
- POSTGRES_PASSWORD=atuin
|
||||
- POSTGRES_USER=atuin
|
||||
|
||||
networks:
|
||||
traefik:
|
||||
external: true
|
||||
4
ansible/roles/atuin/handlers/main.yml
Normal file
4
ansible/roles/atuin/handlers/main.yml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
- name: restart atuin
|
||||
shell:
|
||||
chdir: /opt/atuin
|
||||
cmd: "{{ docker_update_command }}"
|
||||
16
ansible/roles/atuin/tasks/main.yml
Normal file
16
ansible/roles/atuin/tasks/main.yml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
- name: Create install directory
|
||||
file:
|
||||
path: /opt/atuin
|
||||
state: directory
|
||||
owner: "{{ docker_user.name }}"
|
||||
mode: "{{ docker_compose_directory_mask }}"
|
||||
|
||||
|
||||
- name: Install compose file
|
||||
template:
|
||||
src: files/docker-compose.yml
|
||||
dest: /opt/atuin/docker-compose.yml
|
||||
mode: "{{ docker_compose_file_mask }}"
|
||||
owner: "{{ docker_user.name }}"
|
||||
validate: docker-compose -f %s config
|
||||
notify: restart atuin
|
||||
|
|
@ -353,6 +353,16 @@ resource "gandi_livedns_record" "jakehowardtech_freshrss" {
|
|||
]
|
||||
}
|
||||
|
||||
resource "gandi_livedns_record" "jakehowardtech_atuin" {
|
||||
zone = data.gandi_livedns_domain.jakehowardtech.id
|
||||
name = "atuin"
|
||||
type = "CNAME"
|
||||
ttl = 3600
|
||||
values = [
|
||||
"${gandi_livedns_record.sys_domain_pve_private.name}.${gandi_livedns_record.sys_domain_pve_private.zone}."
|
||||
]
|
||||
}
|
||||
|
||||
resource "gandi_livedns_record" "jakehowardtech_caa" {
|
||||
zone = data.gandi_livedns_domain.jakehowardtech.id
|
||||
name = "@"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue