This commit is contained in:
zino
2023-11-28 13:16:47 +01:00
parent ff4ceab228
commit fbc86cec80
3 changed files with 24 additions and 18 deletions

5
.gitignore vendored Normal file
View File

@@ -0,0 +1,5 @@
# Ignore everything in the volume folder
volume/*
# But not the .gitkeep file
!volume/.gitkeep

View File

@@ -1,11 +1,7 @@
version: "3"
networks:
gitea:
external: false
version: "3.8"
services:
server:
gitea:
image: gitea/gitea:latest
container_name: gitea
environment:
@@ -16,33 +12,38 @@ services:
- GITEA__database__NAME=gitea
- GITEA__database__USER=gitea
- GITEA__database__PASSWD=A68nMCsvzyvueYwE
- SSH_DOMAIN=gitea.provenue.de
- SSH_DOMAIN=git.zinomedia.de
- ROOT_URL=https://git.zinomedia.de
- SSH_PORT=222
- SSH_LISTEN_PORT=22
restart: "no"
networks:
- gitea
restart: "unless-stopped"
volumes:
- /home/zino/projects/dockers/gitea/volumes/gitea-data:/data
- ./volumes/gitea-data:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "8083:3000"
- "222:22"
depends_on:
- db
- db
networks:
- web
db:
gitea-mariadb:
image: linuxserver/mariadb:latest
container_name: gitea-mariadb
restart: "no"
restart: "unless-stopped"
environment:
- MYSQL_ROOT_PASSWORD=gitea
- MYSQL_USER=gitea
- MYSQL_PASSWORD=A68nMCsvzyvueYwE
- MYSQL_DATABASE=gitea
networks:
- gitea
volumes:
- /home/zino/projects/dockers/gitea/volumes/db:/config
- ./volumes/db:/config
networks:
- web
networks:
web:
external: true
name: web

0
volumes/.gitkeep Normal file
View File