Initialisation du Homelab
This commit is contained in:
49
services/gitea/docker-compose.yml
Normal file
49
services/gitea/docker-compose.yml
Normal 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:
|
||||
Reference in New Issue
Block a user