deploy.stack/gitea/lky-prod.yml

24 lines
693 B
YAML
Raw Normal View History

2024-03-05 10:38:41 +08:00
# mkdir -pv /data/volumes/gitea/{data,config}
2025-01-02 20:26:21 +08:00
# cd gitea by lcayun
2024-02-28 20:59:13 +08:00
# chown 1000:1000 config/ data/
2025-01-02 20:26:21 +08:00
# 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
2024-02-28 20:59:13 +08:00
services:
gitea:
2024-03-04 15:26:27 +08:00
image: ${IMAGE_TAG}
2024-02-28 20:59:13 +08:00
restart: always
container_name: gitea-app
environment:
- USER_UID=1000
- USER_GID=1000
2024-03-05 10:25:33 +08:00
- TZ=Asia/Shanghai
2024-03-05 10:49:56 +08:00
volumes:
2025-01-02 20:26:21 +08:00
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
2024-03-05 10:49:56 +08:00
- ${Volumes_PATH}/data:/var/lib/gitea
- ${Volumes_PATH}/config:/etc/gitea
2024-02-28 20:59:13 +08:00
ports:
- 3000:3000
2025-01-02 20:26:21 +08:00
- ${LAY_SSH_HOST_PORT}:2222