gitea
yml
networks:
1panel-network:
external: true
services:
gitea:
container_name: ${CONTAINER_NAME}
deploy:
resources:
limits:
cpus: ${CPUS}
memory: ${MEMORY_LIMIT}
environment:
- USER_UID=1000
- USER_GID=1000
- GITEA__database__DB_TYPE=${PANEL_DB_TYPE}
- GITEA__database__HOST=${PANEL_DB_HOST}:${PANEL_DB_PORT}
- GITEA__database__NAME=${PANEL_DB_NAME}
- GITEA__database__USER=${PANEL_DB_USER}
- GITEA__database__PASSWD=${PANEL_DB_USER_PASSWORD}
image: commitgo/gitea-ee:25.4.3
labels:
createdBy: Apps
networks:
- 1panel-network
ports:
- ${HOST_IP}:${PANEL_APP_PORT_HTTP}:3000
- ${HOST_IP}:${PANEL_APP_PORT_SSH}:22
restart: always
volumes:
- ./data:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:rodrone
yml
services:
drone:
image: drone/drone
container_name: drone
environment:
- DRONE_GITEA_SERVER=https://gitea.xxx.top
- DRONE_GITEA_CLIENT_ID=xxxxxx-1fcf-xxxx-bc58-42ca3096de9f
- DRONE_GITEA_CLIENT_SECRET=gto_xnvxxxxxxxxxxxxxxxxxxxxxxxiyk4sqbbeod7ukiq
- DRONE_RPC_SECRET=xxxxx-xxxxxx-undecided
- DRONE_SERVER_HOST=drone.xxxx.top
- DRONE_SERVER_PROTO=https
- DRONE_USER_CREATE=username:xxxxxx,admin:true
restart: always
volumes:
- ./data:/data
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- 10005:80
- 10006:443drone-runner-docker
yml
services:
runner:
image: drone/drone-runner-docker
container_name: drone-runner-docker
environment:
- DRONE_RPC_PROTO=https
- DRONE_RPC_HOST=drone.xxxxx.top
- DRONE_RPC_SECRET=xxxxx-xxxxxx-undecided
- DRONE_RUNNER_CAPACITY=2
- DRONE_RUNNER_NAME=my-runner
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /usr/libexec/docker/cli-plugins:/usr/libexec/docker/cli-plugins
ports:
- 10007:3000
extra_hosts:
- "host.docker.internal:host-gateway"