2024-07-17 16:30:13 +08:00
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
networks:
|
|
|
|
1panel-network:
|
|
|
|
external: true
|
|
|
|
|
|
|
|
services:
|
|
|
|
gitea:
|
|
|
|
image: gitea/gitea:1.22.1
|
|
|
|
container_name: ${CONTAINER_NAME}
|
|
|
|
labels:
|
|
|
|
createdBy: "Apps"
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- 1panel-network
|
|
|
|
ports:
|
|
|
|
- ${PANEL_APP_PORT_HTTP}:3000
|
|
|
|
- ${PANEL_APP_PORT_SSH}:22
|
|
|
|
env_file:
|
|
|
|
- /etc/1panel/envs/global.env
|
|
|
|
- /etc/1panel/envs/gitea/gitea.env
|
|
|
|
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
|
|
|
volumes:
|
|
|
|
- ${GITEA_ROOT_PATH}/data:/data
|
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
environment:
|
|
|
|
- USER_UID=1000
|
|
|
|
- USER_GID=1000
|
2024-07-18 11:22:42 +08:00
|
|
|
- DISABLE_SSH=false
|
2024-07-17 17:18:32 +08:00
|
|
|
- GITEA__api__ENABLE_SWAGGER=false
|
2024-07-18 11:22:42 +08:00
|
|
|
- DB_HOST=${DB_HOSTNAME}:${DB_PORT}
|
2024-07-18 11:47:25 +08:00
|
|
|
- GITEA__mailer__ENABLED=${MAILER_ENABLED}
|
|
|
|
- GITEA__mailer__SMTP_ADDR=${MAILER_SMTP_ADDR}
|
|
|
|
- GITEA__mailer__SMTP_PORT=${MAILER_SMTP_PORT}
|
|
|
|
- GITEA__mailer__USER=${MAILER_USER}
|
|
|
|
- GITEA__mailer__PASSWD=${MAILER_PASSWD}
|
|
|
|
- GITEA__mailer__FROM=${MAILER_FROM}
|
|
|
|
- GITEA__mailer__SUBJECT_PREFIX=${MAILER_SUBJECT_PREFIX}
|
2024-07-18 11:22:42 +08:00
|
|
|
- GITEA__proxy__PROXY_ENABLED=${PROXY_ENABLED}
|
|
|
|
- GITEA__proxy__PROXY_URL=${PROXY_URL}
|
|
|
|
- GITEA__proxy__PROXY_HOSTS=${PROXY_HOSTS}
|
|
|
|
- GITEA__webhook__PROXY_URL=${PROXY_URL}
|
|
|
|
- GITEA__webhook__PROXY_HOSTS=${PROXY_HOSTS}
|
2024-07-17 19:00:15 +08:00
|
|
|
- GITEA__git.config__http.proxy=${PROXY_URL}
|
|
|
|
- GITEA__git.config__https.proxy=${PROXY_URL}
|