services: add gitea

This commit is contained in:
tylen 2025-03-20 22:51:23 +00:00
parent c7a13ec7d8
commit 15bd93abd1
4 changed files with 14 additions and 21 deletions

View File

@ -1,2 +1,2 @@
VM_USER=vm-user CONFIG_PATH="/home/vm-user/remote-apps/gitea/config"
STORAGE_PATH="/home/${VM_USER}/remote-apps" DATA_PATH="/home/vm-user/local-apps/gitea/data"

View File

@ -1,18 +1,16 @@
version: "3" version: "3"
services: services:
server: server:
image: docker.io/gitea/gitea:1.23.1 image: docker.gitea.com/gitea:1.23.5
container_name: gitea container_name: gitea
environment: environment:
- USER_UID=vm-user - USER_UID=1001
- USER_GID=vm-user - USER_GID=1001
restart: always restart: always
networks:
- gitea
volumes: volumes:
- ${STORAGE_PATH}:/data - ${DATA_PATH}:/data
- /etc/timezone:/etc/timezone:ro - /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
ports: ports:
- "192.168.100.57:3000:3000" - "3000:3000"
- "192.168.100.57:22:22" - "222:22"

View File

@ -1,10 +0,0 @@
#! /usr/bin/bash
source ./.env
set -xe
mkdir -p "${DOCKER_PARENT_PATH}"
mkdir -p "${SVC_PATH}"
mkdir -p "${SVC_PATH}/config"
mkdir -p "${SVC_PATH}/metadata"

View File

@ -16,6 +16,11 @@ services:
<<: *vm-media-100-55 <<: *vm-media-100-55
<<: *defaultServiceValues <<: *defaultServiceValues
- name: "gitea"
host:
<<: *vm-tools-100-65
<<: *defaultServiceValues
- name: "ippoolmanager-sql-server" - name: "ippoolmanager-sql-server"
host: host:
<<: *vm-tools-100-65 <<: *vm-tools-100-65