service/services/gitea.spec

15 lines
465 B
Plaintext
Raw Normal View History

command: gitea -C . -w . -c ./custom/conf/app.ini
2019-10-28 18:10:50 +01:00
consumes: postgresql, http?
requires-domain: true
2019-10-24 15:54:15 +02:00
%directory ${SERVICE_ROOT}/custom/conf
name: working directory
2019-10-24 15:54:15 +02:00
%configuration gitea.cfg ${SERVICE_ROOT}/custom/conf/app.ini
2019-10-24 15:54:15 +02:00
%pre-start
2019-10-24 15:54:15 +02:00
name: gitea database creation
# 'command' is run only if this directory doesn't exist
unless-file: ${SERVICE_ROOT}/db_is_setup
command: pg_create_user.sh create_user_and_db && touch ${SERVICE_ROOT}/db_is_setup