aboutsummaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorclyhtsuriva <aimeric@adjutor.xyz>2025-04-04 19:30:31 +0200
committerclyhtsuriva <aimeric@adjutor.xyz>2025-04-04 19:30:31 +0200
commit6793c7f39eaa4089502c30fc26d3cb216117618f (patch)
treee435b16fdbf30224f334bbb2f3f1dd3b77c4c74d /docker
parent8d51f18ef5a51129bd6faf737865ce0f1143455b (diff)
docker: add gitea docker compose + remove docker git cloning task
Diffstat (limited to 'docker')
-rw-r--r--docker/compose/gitea/compose.yaml31
1 files changed, 31 insertions, 0 deletions
diff --git a/docker/compose/gitea/compose.yaml b/docker/compose/gitea/compose.yaml
new file mode 100644
index 0000000..81a3546
--- /dev/null
+++ b/docker/compose/gitea/compose.yaml
@@ -0,0 +1,31 @@
+---
+services:
+ gitea:
+ image: docker.gitea.com/gitea:1.23.6
+ pull_policy: every_12h
+ environment:
+ - DB_TYPE=postgres
+ - DB_HOST=db:5432
+ - DB_NAME=gitea
+ - DB_USER=gitea
+ - DB_PASSWD=gitea
+ restart: unless-stopped
+ volumes:
+ - git_data:/data
+ ports:
+ - '3000:3000'
+ db:
+ image: postgres:alpine
+ environment:
+ - POSTGRES_USER=gitea
+ - POSTGRES_PASSWORD=gitea
+ - POSTGRES_DB=gitea
+ restart: unless-stopped
+ volumes:
+ - db_data:/var/lib/postgresql/data
+ expose:
+ - 5432
+volumes:
+ db_data:
+ git_data:
+...