# 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" - "$APP_SSH_PORT:22" networks: default: name: ${APP_NETWORK} external: true