Test
This commit is contained in:
parent
949e8d8696
commit
d33294d0ff
@ -5,10 +5,3 @@ ADD config /etc/gitea
|
|||||||
ADD data /var/lib/gitea
|
ADD data /var/lib/gitea
|
||||||
ADD localtime /etc/localtime
|
ADD localtime /etc/localtime
|
||||||
ADD timezone /etc/timezone
|
ADD timezone /etc/timezone
|
||||||
|
|
||||||
COPY parse_db_url.sh /usr/local/bin/parse_db_url.sh
|
|
||||||
|
|
||||||
USER root
|
|
||||||
RUN chmod +x /usr/local/bin/parse_db_url.sh
|
|
||||||
|
|
||||||
ENTRYPOINT ["/usr/local/bin/parse_db_url.sh"]
|
|
||||||
|
12
heroku.yml
12
heroku.yml
@ -2,8 +2,20 @@ setup:
|
|||||||
addons:
|
addons:
|
||||||
- plan: heroku-postgresql
|
- plan: heroku-postgresql
|
||||||
as: DATABASE
|
as: DATABASE
|
||||||
|
config:
|
||||||
|
POSTGRES_USER: gitea
|
||||||
|
POSTGRES_PASSWORD: gitea
|
||||||
|
POSTGRES_DB: gitea
|
||||||
|
|
||||||
build:
|
build:
|
||||||
docker:
|
docker:
|
||||||
web: Dockerfile
|
web: Dockerfile
|
||||||
|
config:
|
||||||
|
GITEA__database__DB_TYPE: postgres
|
||||||
|
GITEA__database__HOST: db:5432
|
||||||
|
GITEA__database__NAME: gitea
|
||||||
|
GITEA__database__USER: gitea
|
||||||
|
GITEA__database__PASSWD: gitea
|
||||||
|
|
||||||
|
run:
|
||||||
|
web: /usr/local/bin/gitea web -port $PORT
|
||||||
|
Loading…
Reference in New Issue
Block a user