modify(gitea): stack yaml modify

This commit is contained in:
GengY
2024-03-05 10:38:41 +08:00
parent a365d86908
commit 3d26d7f76d

25
gitea/prod.stack.yml Normal file
View File

@@ -0,0 +1,25 @@
# mkdir -pv /data/volumes/gitea/{data,config}
# cd gitea
# chown 1000:1000 config/ data/
# pull:: docker compose --env-file ./gitea/env.cfg -f ./gitea/prod.stack.yml pull
# Run:: docker compose -p gitea --env-file ./gitea/env.cfg -f ./gitea/prod.stack.yml up -d
version: "3.9"
services:
gitea:
image: ${IMAGE_TAG}
restart: always
container_name: gitea-app
environment:
- USER_UID=1000
- USER_GID=1000
volumes:
- ${Volumes_PATH}/data:/var/lib/gitea
- ${Volumes_PATH}/config:/etc/gitea
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- TZ=Asia/Shanghai
ports:
- 3000:3000
- 2222:2222