service/services/gitea.spec

14 lines
650 B
Plaintext
Raw Normal View History

command: gitea -C . -w . -c ./custom/conf/app.ini
2019-10-24 15:54:15 +02:00
consumes: postgresql
%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
2019-10-26 14:00:11 +02:00
command: pg_create_user.sh --pghost=localhost --pgport=$(get-port $POSTGRESQL_PROVIDER) --pgdatadir=$POSTGRESQL_ROOT --pguser=postgres --dbuser=${ENVIRONMENT}_gitea --dbpassfile=${SERVICE_ROOT}/password_main --dbname=${ENVIRONMENT}_gitea_db create_user_and_db && touch ${SERVICE_ROOT}/db_is_setup