Init gitea
This commit is contained in:
parent
a6dd728b9a
commit
b5b253df49
1
fighter/config/gitea/.env
Normal file
1
fighter/config/gitea/.env
Normal file
@ -0,0 +1 @@
|
|||||||
|
DOCKER_DATA=/home/admin/data/gitea
|
24
fighter/config/gitea/docker-compose.yml
Normal file
24
fighter/config/gitea/docker-compose.yml
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
version: "3"
|
||||||
|
services:
|
||||||
|
server:
|
||||||
|
image: gitea/gitea:1.21.0
|
||||||
|
container_name: gitea_gitea
|
||||||
|
env_file:
|
||||||
|
- gitea.env
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- web
|
||||||
|
volumes:
|
||||||
|
- $DOCKER_DATA/gitea:/data
|
||||||
|
- /etc/timezone:/etc/timezone:ro
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
ports:
|
||||||
|
- "2225:22"
|
||||||
|
labels:
|
||||||
|
- traefik.http.routers.gitea.rule=Host(`gitea.jafner.net`)
|
||||||
|
- traefik.http.routers.gitea.tls.certresolver=lets-encrypt
|
||||||
|
- traefik.http.routers.gitea.tls.options=tls12@file
|
||||||
|
- traefik.http.routers.gitea.middlewares=securityheaders@file
|
||||||
|
networks:
|
||||||
|
web:
|
||||||
|
external: true
|
2
fighter/config/gitea/gitea.env
Normal file
2
fighter/config/gitea/gitea.env
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
USER_UID=1001
|
||||||
|
USER_GID=1001
|
Loading…
Reference in New Issue
Block a user