deploy.stack/gitea/prod.stack.yml

25 lines
669 B
YAML
Raw Normal View History

2024-03-05 10:38:41 +08:00
# mkdir -pv /data/volumes/gitea/{data,config}
2024-02-28 20:59:13 +08:00
# cd gitea
# chown 1000:1000 config/ data/
2024-03-05 10:38:41 +08:00
# 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
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
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
2024-03-05 10:25:33 +08:00
- TZ=Asia/Shanghai
2024-03-05 10:49:56 +08:00
volumes:
- ${Volumes_PATH}/data:/var/lib/gitea
- ${Volumes_PATH}/config:/etc/gitea
2024-02-28 20:59:13 +08:00
ports:
- 3000:3000
- 2222:2222