services: add gitea
This commit is contained in:
parent
c7a13ec7d8
commit
15bd93abd1
@ -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"
|
||||||
|
|||||||
@ -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"
|
||||||
@ -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"
|
|
||||||
|
|
||||||
@ -15,7 +15,12 @@ services:
|
|||||||
host:
|
host:
|
||||||
<<: *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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user