Init Gitea on druid
This commit is contained in:
parent
f527460e15
commit
cfbe3a9a1a
1
druid/config/gitea/.env
Normal file
1
druid/config/gitea/.env
Normal file
@ -0,0 +1 @@
|
|||||||
|
DOCKER_DATA=/home/admin/data/gitea
|
42
druid/config/gitea/docker-compose.yml
Normal file
42
druid/config/gitea/docker-compose.yml
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
version: "3"
|
||||||
|
services:
|
||||||
|
gitea:
|
||||||
|
image: gitea/gitea:1.21.0
|
||||||
|
container_name: gitea_gitea
|
||||||
|
env_file:
|
||||||
|
- gitea.env
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- web
|
||||||
|
- gitea
|
||||||
|
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.tools`)
|
||||||
|
- traefik.http.routers.gitea.tls.certresolver=lets-encrypt
|
||||||
|
- traefik.http.routers.gitea.tls.options=tls12@file
|
||||||
|
- traefik.http.routers.gitea.middlewares=securityheaders@file
|
||||||
|
- traefik.http.routers.gitea.service=gitea
|
||||||
|
- traefik.http.services.gitea.loadbalancer.server.port=3000
|
||||||
|
|
||||||
|
postgres:
|
||||||
|
image: postgres:13
|
||||||
|
container_name: gitea_postgres
|
||||||
|
networks:
|
||||||
|
- gitea
|
||||||
|
env_file:
|
||||||
|
- postgres_secrets.env
|
||||||
|
volumes:
|
||||||
|
- postgres_data:/var/lib/postgresql/data
|
||||||
|
|
||||||
|
networks:
|
||||||
|
web:
|
||||||
|
external: true
|
||||||
|
gitea:
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
postgres_data:
|
2
druid/config/gitea/gitea.env
Normal file
2
druid/config/gitea/gitea.env
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
USER_UID=1002
|
||||||
|
USER_GID=1002
|
Loading…
Reference in New Issue
Block a user