websoft9/docker/w9gitea/docker-compose.yml

30 lines
585 B
YAML
Raw Normal View History

2023-09-08 16:35:37 +08:00
# 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}
2023-09-12 16:17:54 +08:00
external: true
volumes:
gitea: