2019-10-26 15:24:22 +02:00
|
|
|
command: gitea -C . -w . -c ./custom/conf/app.ini
|
2019-10-28 18:10:50 +01:00
|
|
|
consumes: postgresql, http?
|
2019-10-28 13:24:41 +01:00
|
|
|
requires-domain: true
|
2019-10-29 12:32:49 +01:00
|
|
|
ports: http
|
2019-10-24 15:54:15 +02:00
|
|
|
|
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 15:44:35 +02:00
|
|
|
command: pg_create_user.sh create_user_and_db && touch ${SERVICE_ROOT}/db_is_setup
|