Initialisation du Homelab

This commit is contained in:
2026-07-07 09:32:57 +02:00
commit 5d8adcff39
4 changed files with 141 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
services:
db:
image: postgres:16-alpine
container_name: gitea-db
restart: unless-stopped
environment:
POSTGRES_DB: gitea
POSTGRES_USER: gitea
POSTGRES_PASSWORD_FILE: /run/secrets/postgres_password
volumes:
- ./postgres:/var/lib/postgresql/data
secrets:
- postgres_password
networks:
- gitea_internal
gitea:
image: docker.gitea.com/gitea:1.24.7
container_name: gitea
restart: unless-stopped
depends_on:
- db
environment:
USER_UID: 1000
USER_GID: 1000
GITEA__server__DOMAIN: git.thomasmlg.fr
GITEA__server__ROOT_URL: https://git.thomasmlg.fr/
GITEA__server__SSH_DOMAIN: git.thomasmlg.fr
GITEA__server__SSH_PORT: 2222
GITEA__server__START_SSH_SERVER: "false"
GITEA__service__DISABLE_REGISTRATION: "true"
volumes:
- ./data:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "2222:22"
secrets:
- postgres_password
networks:
- gitea_internal
secrets:
postgres_password:
file: ./secrets/postgres_password
networks:
gitea_internal: