up(gitea): update stack yaml
This commit is contained in:
parent
80bc19fd8a
commit
8e6e5aed20
@ -1,2 +1,4 @@
|
|||||||
IMAGE_TAG=gitea/gitea:1.22.6-rootless
|
IMAGE_TAG=gitea/gitea:1.22.6-rootless
|
||||||
Volumes_PATH=/data/volumes/gitea
|
Volumes_PATH=/data/volumes/gitea
|
||||||
|
LAY_SSH_HOST_PORT=22
|
||||||
|
SSH_HOST_PORT=2222
|
24
gitea/lky-prod.yml
Normal file
24
gitea/lky-prod.yml
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
# mkdir -pv /data/volumes/gitea/{data,config}
|
||||||
|
# cd gitea by lcayun
|
||||||
|
# chown 1000:1000 config/ data/
|
||||||
|
# pull:: docker compose --env-file ./gitea/env.cfg -f ./gitea/lky-prod.yml up pull
|
||||||
|
# RUN:: docker compose -p gitea --env-file ./gitea/env.cfg -f ./gitea/lky-prod.yml up -d
|
||||||
|
|
||||||
|
services:
|
||||||
|
|
||||||
|
gitea:
|
||||||
|
image: ${IMAGE_TAG}
|
||||||
|
restart: always
|
||||||
|
container_name: gitea-app
|
||||||
|
environment:
|
||||||
|
- USER_UID=1000
|
||||||
|
- USER_GID=1000
|
||||||
|
- TZ=Asia/Shanghai
|
||||||
|
volumes:
|
||||||
|
- /etc/timezone:/etc/timezone:ro
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
- ${Volumes_PATH}/data:/var/lib/gitea
|
||||||
|
- ${Volumes_PATH}/config:/etc/gitea
|
||||||
|
ports:
|
||||||
|
- 3000:3000
|
||||||
|
- ${LAY_SSH_HOST_PORT}:2222
|
@ -1,8 +1,8 @@
|
|||||||
# mkdir -pv /data/volumes/gitea/{data,config}
|
# mkdir -pv /data/volumes/gitea/{data,config}
|
||||||
# cd gitea
|
# cd gitea by Raspberry pi
|
||||||
# chown 1000:1000 config/ data/
|
# chown 1000:1000 config/ data/
|
||||||
# pull:: docker compose --env-file ./gitea/env.cfg -f ./gitea/prod.stack.yml pull
|
# pull:: docker compose --env-file ./gitea/env.cfg -f ./gitea/rpi-prod.yml pull
|
||||||
# Run:: docker compose -p gitea --env-file ./gitea/env.cfg -f ./gitea/prod.stack.yml up -d
|
# Run:: docker compose -p gitea --env-file ./gitea/env.cfg -f ./gitea/rpi-prod.yml up -d
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
@ -13,12 +13,12 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- USER_UID=1000
|
- USER_UID=1000
|
||||||
- USER_GID=1000
|
- USER_GID=1000
|
||||||
- /etc/timezone:/etc/timezone:ro
|
|
||||||
- /etc/localtime:/etc/localtime:ro
|
|
||||||
- TZ=Asia/Shanghai
|
- TZ=Asia/Shanghai
|
||||||
volumes:
|
volumes:
|
||||||
|
- /etc/timezone:/etc/timezone:ro
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
- ${Volumes_PATH}/data:/var/lib/gitea
|
- ${Volumes_PATH}/data:/var/lib/gitea
|
||||||
- ${Volumes_PATH}/config:/etc/gitea
|
- ${Volumes_PATH}/config:/etc/gitea
|
||||||
ports:
|
ports:
|
||||||
- 3000:3000
|
- 3000:3000
|
||||||
- 2222:2222
|
- ${SSH_HOST_PORT}:2222
|
Loading…
x
Reference in New Issue
Block a user