maj split gitea et drone

This commit is contained in:
2023-03-11 10:19:57 +01:00
parent cf4516e993
commit 0db5de0eea
5 changed files with 76 additions and 66 deletions
+10
View File
@@ -0,0 +1,10 @@
# DATABASE
POSTGRES_DB=gitea-db
POSTGRES_USER=gitea
POSTGRES_PASSWORD=password
# GITEA
GITEA_SSH_PORT=2222
ROOT_URL="https://git.mondomaine.tld"
SSH_DOMAIN="git.mondomaine.tld"
DOMAIN="git.mondomaine.tld"
+53
View File
@@ -0,0 +1,53 @@
version: "2"
services:
# GITEA
gitea-web:
image: gitea/gitea:1.16.9
container_name: gitea
restart: always
env_file:
- .env
environment:
- USER_UID=1000
- USER_GID=1000
- GITEA__database__DB_TYPE=postgres
- GITEA__database__HOST=gitea-db:5432
- GITEA__database__NAME=${POSTGRES_DB}
- GITEA__database__USER=${POSTGRES_USER}
- GITEA__database__PASSWD=${POSTGRES_PASSWORD}
volumes:
- ./gitea:/data/gitea
- ./config:/etc/gitea
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "${GITEA_SSH_PORT}:22"
depends_on:
- gitea-db
networks:
- gitea
gitea-db:
image: postgres:14
container_name: gitea-db
restart: always
env_file:
- .env
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
volumes:
- ./postgres:/var/lib/postgresql/data
networks:
- gitea
volumes:
gitea:
postgres:
networks:
gitea:
name: gitea