2023-04-27 14:12:19 +08:00
|
|
|
services:
|
|
|
|
gitea:
|
2024-09-24 22:28:33 +08:00
|
|
|
image: commitgo/gitea-ee:22.2.0
|
2023-04-27 14:12:19 +08:00
|
|
|
container_name: ${CONTAINER_NAME}
|
|
|
|
environment:
|
|
|
|
- USER_UID=1000
|
|
|
|
- USER_GID=1000
|
2024-01-03 11:04:01 +08:00
|
|
|
- GITEA__database__DB_TYPE=${PANEL_DB_TYPE}
|
|
|
|
- GITEA__database__HOST=${PANEL_DB_HOST}:${PANEL_DB_PORT}
|
2023-04-27 14:12:19 +08:00
|
|
|
- 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:
|
2023-05-08 11:16:31 +08:00
|
|
|
- "${PANEL_APP_PORT_HTTP}:3000"
|
|
|
|
- "${PANEL_APP_PORT_SSH}:22"
|
2023-04-27 14:12:19 +08:00
|
|
|
labels:
|
|
|
|
createdBy: "Apps"
|
|
|
|
networks:
|
|
|
|
1panel-network:
|
|
|
|
external: true
|