websoft9/docker/w9gitea/docker-compose.yml
qiaofeng1227 682c63b3cc gitea
2023-09-13 14:07:13 +08:00

29 lines
558 B
YAML

# image: https://hub.docker.com/r/gitea/gitea
# docs: https://docs.gitea.io/zh-cn/install-with-docker
version: '3.8'
services:
gitea:
image: gitea/gitea:$APP_VERSION
container_name: $APP_NAME
environment:
- USER_UID=1000
- USER_GID=1000
restart: unless-stopped
env_file:
- .env
volumes:
- gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "$APP_HTTP_PORT:3000"
networks:
default:
name: ${APP_NETWORK}
external: true
volumes:
gitea: