2019-10-01 13:36:54 +08:00
|
|
|
version: '3.7'
|
2017-05-27 18:13:11 +08:00
|
|
|
|
|
|
|
services:
|
2019-10-20 08:23:47 +08:00
|
|
|
|
2019-10-01 13:36:54 +08:00
|
|
|
drone:
|
2019-10-20 08:23:47 +08:00
|
|
|
image: drone/drone:1.6-linux-arm
|
2017-05-27 18:13:11 +08:00
|
|
|
ports:
|
2019-10-01 13:36:54 +08:00
|
|
|
- "8080:80"
|
2017-05-27 18:13:11 +08:00
|
|
|
volumes:
|
2019-10-01 13:36:54 +08:00
|
|
|
- ./data/drone:/data
|
2017-05-27 18:13:11 +08:00
|
|
|
environment:
|
2019-10-01 13:36:54 +08:00
|
|
|
- DRONE_SERVER_HOST=drone
|
|
|
|
- DRONE_SERVER_PROTO=http
|
|
|
|
- DRONE_RPC_SECRET=secret
|
2019-10-20 08:23:47 +08:00
|
|
|
- DRONE_DATABASE_DRIVER=sqlite3
|
|
|
|
- DRONE_DATABASE_DATASOURCE=/data/database.sqlite
|
2019-10-01 13:36:54 +08:00
|
|
|
- DRONE_GOGS_SERVER=http://gogs:3000
|
|
|
|
- DRONE_AGENTS_ENABLED=true
|
2017-09-24 14:14:59 +08:00
|
|
|
depends_on:
|
2019-10-01 13:36:54 +08:00
|
|
|
- postgres
|
2017-10-07 10:19:19 +08:00
|
|
|
- gogs
|
2017-05-27 18:13:11 +08:00
|
|
|
restart: always
|
|
|
|
|
2019-10-01 13:36:54 +08:00
|
|
|
agent:
|
2019-10-20 08:23:47 +08:00
|
|
|
image: drone/agent:1.6-linux-arm
|
2017-05-27 18:13:11 +08:00
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
environment:
|
2019-10-01 13:36:54 +08:00
|
|
|
- DRONE_RPC_PROTO=http
|
|
|
|
- DRONE_RPC_HOST=drone
|
|
|
|
- DRONE_RPC_SECRET=secret
|
|
|
|
- DRONE_RUNNER_NAME=agent
|
|
|
|
- DRONE_RUNNER_CAPACITY=2
|
2017-05-27 18:13:11 +08:00
|
|
|
depends_on:
|
2019-10-01 13:36:54 +08:00
|
|
|
- drone
|
2017-05-27 18:13:11 +08:00
|
|
|
restart: always
|
2017-09-24 14:14:59 +08:00
|
|
|
|
2017-10-07 10:19:19 +08:00
|
|
|
gogs:
|
|
|
|
image: easypi/gogs-arm
|
|
|
|
ports:
|
|
|
|
- "2222:22"
|
|
|
|
- "3000:3000"
|
|
|
|
volumes:
|
|
|
|
- ./data/gogs:/data
|
|
|
|
restart: always
|