mirror of
https://github.com/arcan1s/ahriman.git
synced 2026-08-20 15:27:26 +00:00
* use local devtools configs instead of global ones * make docker image rootless * add migration notes * fix setup command * fix regress jo
87 lines
1.7 KiB
YAML
87 lines
1.7 KiB
YAML
services:
|
|
volume-init:
|
|
image: arcan1s/ahriman:edge
|
|
user: root
|
|
|
|
entrypoint: [
|
|
"chown",
|
|
]
|
|
command: [
|
|
"ahriman:ahriman",
|
|
"/var/lib/ahriman",
|
|
]
|
|
|
|
volumes:
|
|
- type: volume
|
|
source: repository
|
|
target: /var/lib/ahriman
|
|
|
|
backend:
|
|
image: arcan1s/ahriman:edge
|
|
privileged: true
|
|
|
|
environment:
|
|
AHRIMAN_DEBUG: yes
|
|
AHRIMAN_OUTPUT: console
|
|
AHRIMAN_PASSWORD: ${AHRIMAN_PASSWORD}
|
|
AHRIMAN_PORT: 8080
|
|
AHRIMAN_PRESETUP_COMMAND: useradd -d / -G wheel -M demo; (cat /run/secrets/password; echo; cat /run/secrets/password) | passwd demo
|
|
AHRIMAN_REPOSITORY: ahriman-demo
|
|
AHRIMAN_UNIX_SOCKET: /var/lib/ahriman/ahriman.sock
|
|
|
|
configs:
|
|
- source: service
|
|
target: /etc/ahriman.ini.d/99-settings.ini
|
|
secrets:
|
|
- password
|
|
|
|
volumes:
|
|
- type: volume
|
|
source: repository
|
|
target: /var/lib/ahriman
|
|
|
|
depends_on:
|
|
volume-init:
|
|
condition: service_completed_successfully
|
|
|
|
healthcheck:
|
|
test: curl --fail --silent --output /dev/null http://backend:8080/api/v1/info
|
|
interval: 10s
|
|
start_period: 30s
|
|
|
|
command: web
|
|
|
|
frontend:
|
|
image: nginx
|
|
ports:
|
|
- 8080:80
|
|
|
|
depends_on:
|
|
backend:
|
|
condition: service_healthy
|
|
|
|
configs:
|
|
- source: nginx
|
|
target: /etc/nginx/conf.d/default.conf
|
|
|
|
volumes:
|
|
- type: volume
|
|
source: repository
|
|
target: /srv
|
|
read_only: true
|
|
volume:
|
|
nocopy: true
|
|
|
|
configs:
|
|
nginx:
|
|
file: nginx.conf
|
|
service:
|
|
file: service.ini
|
|
|
|
secrets:
|
|
password:
|
|
environment: AHRIMAN_PASSWORD
|
|
|
|
volumes:
|
|
repository:
|