mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-24 10:17:15 +08:00
30 lines
585 B
YAML
30 lines
585 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"
|
|
- "$APP_SSH_PORT:22"
|
|
|
|
networks:
|
|
default:
|
|
name: ${APP_NETWORK}
|
|
external: true
|
|
|
|
volumes:
|
|
gitea: |