version: "3"
services:
gitea:
image: gitea/gitea:latest
container_name: gitea
environment:
- USER_UID=1000
- USER_GID=1000
restart: always
volumes:
- /gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "13000:3000"
- "10022:22"
drone:
image: drone/drone:2
environment:
- DRONE_DEBUG=true
- DRONE_GITEA_SERVER=http://43.136.39.33:13000
- DRONE_GITEA_CLIENT_ID=b1652726-7f5a-4013-a033-8687b0124c66
- DRONE_GITEA_CLIENT_SECRET=gto_bixqvslfzirwxdknyutyh5hz6dhscsojmfhwrfp7qqsrhu4ocbxq
- DRONE_RPC_SECRET=11e8a665ecf9ad8f4c5592a478149598
- DRONE_SERVER_HOST=43.136.39.33:18074
- DRONE_SERVER_PROTO=http
- DRONE_USER_CREATE=username:jichenghui,admin:true
- DRONE_AGENTS_ENABLED=true
- DRONE_GIT_ALWAYS_AUTH=true
- DRONE_GITEA_SKIP_VERIFY=false
restart: always
volumes:
- ./drone:/data
- /www/go:/go
ports:
- 443:443
- 18074:80
runner:
image: drone/drone-runner-docker:1
environment:
- DRONE_RPC_PROTO=http
- DRONE_RPC_HOST=43.136.39.33:18074
- DRONE_RPC_SECRET=11e8a665ecf9ad8f4c5592a478149598
- DRONE_RUNNER_CAPACITY=2
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 3000:3000