37 lines
1.0 KiB
Plaintext
37 lines
1.0 KiB
Plaintext
[Container]
|
|
# AutoUpdate=registry
|
|
ContainerName=authentik-db
|
|
Environment="POSTGRES_USER=authentik"
|
|
Environment="POSTGRES_PASSWORD=OCxfxtWadNuXslBbfWw9c0JXLMu+bWngv+qk9Ya65sw="
|
|
Environment="POSTGRES_DB=authentik"
|
|
Environment="TZ=America/Phoenix"
|
|
Image=docker.io/library/postgres:16.6
|
|
HealthCmd=pg_isready -U authentik
|
|
HealthInterval=30s
|
|
HealthRetries=5
|
|
HealthStartPeriod=20s
|
|
HealthTimeout=3s
|
|
# Network=authentik.network
|
|
# Pod=authentik.pod
|
|
PublishPort=5439:5432
|
|
Volume=/etc/localtime:/etc/localtime:ro
|
|
Volume=/etc/timezone:/etc/timezone:ro
|
|
Volume=authentik-db-data:/data:Z
|
|
|
|
[Service]
|
|
Restart=no
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target default.target
|
|
|
|
# podman pull docker.io/library/postgres:16.6
|
|
# systemctl --user daemon-reload
|
|
# systemctl --user start authentik-db
|
|
# systemctl --user status authentik-db --lines=999
|
|
# journalctl -fu authentik-db.service
|
|
# podman logs authentik-db
|
|
# systemctl --user stop authentik-db
|
|
# systemctl --user disable authentik-db
|
|
# podman exec -ti authentik-db /bin/sh
|
|
# podman exec -ti authentik-db /bin/bash
|