mirror of
https://gitlab.com/rusty-bever/deployment.git
synced 2026-04-08 11:55:47 +02:00
Updated gitea to use config; added config file
This commit is contained in:
parent
417627385c
commit
6f8960f569
2 changed files with 136 additions and 0 deletions
|
|
@ -18,6 +18,9 @@ services:
|
|||
- 'traefik.http.routers.gitea.tls.certresolver=letsEncrypt'
|
||||
- 'traefik.http.services.gitea.loadbalancer.server.port=3000'
|
||||
|
||||
configs:
|
||||
- source: gitea_v1
|
||||
target: /data/gitea/conf/app.ini
|
||||
environment:
|
||||
- 'DB_TYPE=postgres'
|
||||
- 'DB_HOST=db:5432'
|
||||
|
|
@ -26,6 +29,10 @@ services:
|
|||
- 'DB_PASSWD=gitea'
|
||||
- 'LFS_START_SERVER=true'
|
||||
- 'DISABLE_REGISTRATION=true'
|
||||
- 'GITEA__server__LFS_JWT_SECRET_FILE=/run/secrets/gitea_lfs_jwt_secret'
|
||||
- 'GITEA__security__SECRET_KEY_FILE=/run/secrets/gitea_secret_key'
|
||||
- 'GITEA__security__INTERNAL_TOKEN_FILE=/run/secrets/gitea_internal_token'
|
||||
- 'GITEA__oauth2__JWT_SECRET_FILE=/run/secrets/gitea_jwt_secret'
|
||||
networks:
|
||||
- 'default'
|
||||
- 'public'
|
||||
|
|
@ -55,10 +62,24 @@ services:
|
|||
volumes:
|
||||
- 'db-data:/var/lib/postgresql/data'
|
||||
|
||||
configs:
|
||||
gitea_v1:
|
||||
external: true
|
||||
|
||||
networks:
|
||||
public:
|
||||
external: true
|
||||
|
||||
secrets:
|
||||
gitea_internal_token:
|
||||
external: true
|
||||
gitea_jwt_secret:
|
||||
external: true
|
||||
gitea_lfs_jwt_secret:
|
||||
external: true
|
||||
gitea_secret_key:
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
data:
|
||||
db-data:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue