14 lines
650 B
Plaintext
14 lines
650 B
Plaintext
command: gitea -C . -w . -c ./custom/conf/app.ini
|
|
consumes: postgresql
|
|
|
|
%directory ${SERVICE_ROOT}/custom/conf
|
|
name: working directory
|
|
|
|
%configuration gitea.cfg ${SERVICE_ROOT}/custom/conf/app.ini
|
|
|
|
%pre-start
|
|
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 --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
|