2019-10-26 15:24:22 +02:00
|
|
|
command: gitea -C . -w . -c ./custom/conf/app.ini
|
2019-10-24 15:54:15 +02:00
|
|
|
consumes: postgresql
|
|
|
|
|
2019-10-26 15:24:22 +02:00
|
|
|
%directory ${SERVICE_ROOT}/custom/conf
|
|
|
|
name: working directory
|
2019-10-24 15:54:15 +02:00
|
|
|
|
2019-10-26 15:24:22 +02:00
|
|
|
%configuration gitea.cfg ${SERVICE_ROOT}/custom/conf/app.ini
|
2019-10-24 15:54:15 +02:00
|
|
|
|
2019-10-26 14:50:03 +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
|
2019-10-26 14:50:03 +02:00
|
|
|
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
|