appstore-1panel/apps/gitea/versions/1.19.1/docker-compose.yml
wanghe 53616d1e0f
feat: 应用商店支持 Gitea (#33)
* feat: 应用商店支持 Gitea
2023-04-27 14:12:19 +08:00

29 lines
734 B
YAML

version: "3"
services:
gitea:
image: gitea/gitea:1.19.1
container_name: ${CONTAINER_NAME}
environment:
- USER_UID=1000
- USER_GID=1000
- GITEA__database__DB_TYPE=mysql
- GITEA__database__HOST=${PANEL_DB_HOST}:3306
- GITEA__database__NAME=${PANEL_DB_NAME}
- GITEA__database__USER=${PANEL_DB_USER}
- GITEA__database__PASSWD=${PANEL_DB_USER_PASSWORD}
restart: always
networks:
- 1panel-network
volumes:
- ./data:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "${GITEA_PORT_HTTP}:3000"
- "${GITEA_PORT_SSH}:22"
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true