mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-04-24 15:27:17 +00:00
78 lines
1.6 KiB
YAML
78 lines
1.6 KiB
YAML
services:
|
|
backend:
|
|
image: arcan1s/ahriman:edge
|
|
privileged: true
|
|
|
|
environment:
|
|
AHRIMAN_DEBUG: yes
|
|
AHRIMAN_OUTPUT: console
|
|
AHRIMAN_PASSWORD: ${AHRIMAN_PASSWORD}
|
|
AHRIMAN_PORT: 8080
|
|
AHRIMAN_PRESETUP_COMMAND: (cat /run/secrets/password; echo; cat /run/secrets/password) | sudo -u ahriman ahriman user-add demo -R full
|
|
AHRIMAN_REPOSITORY: ahriman-demo
|
|
AHRIMAN_UNIX_SOCKET: /var/lib/ahriman/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
|
|
volume:
|
|
nocopy: true
|
|
|
|
command: web
|
|
|
|
frontend:
|
|
image: nginx
|
|
ports:
|
|
- 8080:80
|
|
|
|
configs:
|
|
- source: nginx
|
|
target: /etc/nginx/conf.d/default.conf
|
|
|
|
volumes:
|
|
- type: volume
|
|
source: repository
|
|
target: /srv
|
|
read_only: true
|
|
volume:
|
|
nocopy: true
|
|
|
|
worker:
|
|
image: arcan1s/ahriman:edge
|
|
privileged: true
|
|
|
|
environment:
|
|
AHRIMAN_DEBUG: yes
|
|
AHRIMAN_OUTPUT: console
|
|
AHRIMAN_PASSWORD: ${AHRIMAN_PASSWORD}
|
|
AHRIMAN_REPOSITORY: ahriman-demo
|
|
AHRIMAN_REPOSITORY_SERVER: http://frontend/repo/$$repo/$$arch
|
|
|
|
configs:
|
|
- source: worker
|
|
target: /etc/ahriman.ini.d/99-settings.ini
|
|
|
|
command: daemon
|
|
|
|
configs:
|
|
nginx:
|
|
file: nginx.conf
|
|
service:
|
|
file: service.ini
|
|
worker:
|
|
file: worker.ini
|
|
|
|
secrets:
|
|
password:
|
|
environment: AHRIMAN_PASSWORD
|
|
|
|
volumes:
|
|
repository:
|