Add Git LFS support to Gitea configuration
This commit is contained in:
parent
3282e96722
commit
6198f04bbf
2 changed files with 10 additions and 0 deletions
5
Dockerfile
Normal file
5
Dockerfile
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
FROM gitea/gitea:latest
|
||||
USER root
|
||||
RUN apk add --no-cache git-lfs
|
||||
USER git
|
||||
|
||||
|
|
@ -4,6 +4,9 @@ services:
|
|||
gitea:
|
||||
image: gitea/gitea:latest
|
||||
container_name: gitea
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.gitea
|
||||
environment:
|
||||
- USER_UID=1000
|
||||
- USER_GID=1000
|
||||
|
|
@ -42,6 +45,8 @@ services:
|
|||
- GITEA__session__COOKIE_NAME=gitea_session
|
||||
- GITEA__session__COOKIE_SECURE=false
|
||||
- GITEA__session__DOMAIN=gitea.sigd.net
|
||||
- GITEA__server__LFS_START_SERVER=true
|
||||
- GITEA__lfs__PATH=/data/git/lfs
|
||||
volumes:
|
||||
- /docker/gitea/data:/data
|
||||
- /docker/gitea/config:/etc/gitea
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue