mirror of
https://github.com/arcan1s/ahriman.git
synced 2026-08-21 07:47:27 +00:00
feat: full rootless setup (#165)
* use local devtools configs instead of global ones * make docker image rootless * add migration notes * fix setup command * fix regress jo
This commit is contained in:
+26
-3
@@ -1,4 +1,21 @@
|
||||
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
|
||||
@@ -10,7 +27,7 @@ services:
|
||||
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/ahriman.sock
|
||||
AHRIMAN_UNIX_SOCKET: /var/lib/ahriman/ahriman.sock
|
||||
|
||||
configs:
|
||||
- source: service
|
||||
@@ -22,8 +39,10 @@ services:
|
||||
- type: volume
|
||||
source: repository
|
||||
target: /var/lib/ahriman
|
||||
volume:
|
||||
nocopy: true
|
||||
|
||||
depends_on:
|
||||
volume-init:
|
||||
condition: service_completed_successfully
|
||||
|
||||
healthcheck:
|
||||
test: curl --fail --silent --output /dev/null http://backend:8080/api/v1/info
|
||||
@@ -37,6 +56,10 @@ services:
|
||||
ports:
|
||||
- 8080:80
|
||||
|
||||
depends_on:
|
||||
backend:
|
||||
condition: service_healthy
|
||||
|
||||
configs:
|
||||
- source: nginx
|
||||
target: /etc/nginx/conf.d/default.conf
|
||||
|
||||
Reference in New Issue
Block a user