version: "3.6"
services:
drone-server:
image: drone/drone:1
container_name: drone-server
ports:
- "8080:80"
- "8000:8000"
- "9000:9000"
volumes:
- ./var/run/docker.sock:/var/run/docker.sock
- ./dnmp/drone/:/var/lib/drone/:rw
restart: always
environment:
- DRONE_GITEA_SERVER=http://www.test.com/git
#- DRONE_GITEA_SERVER=http://127.0.0.1:10080
- DRONE_GITEA_CLIENT_ID=d4d0bc58-a1f2-40e2-84b5-cd00532e5e08
- DRONE_GITEA_CLIENT_SECRET=1TRMM2YKYdyn1jqw1T3MKXejy-ow_1-Oh8oMT_dbv44=
- DRONE_GIT_ALWAYS_AUTH=false
- DRONE_RUNNER_CAPACITY=2
- DRONE_SERVER_HOST=www.test.com:8080
- DRONE_SERVER_PROTO=http
- DRONE_RPC_SECRET=9c3921e3e748aff725d2e16ef31fbc42
- DRONE_TLS_AUTOCERT=false
- DRONE_LOGS_DEBUG=true
- TZ=Asia/Shanghai
restart: always
networks:
my-network:
ipv4_address: 10.3.0.4
drone-agent:
image: drone/agent:1
container_name: drone-agent
command: agent
restart: always
depends_on:
- drone-server
volumes:
- ./var/run/docker.sock:/var/run/docker.sock
environment:
#- DRONE_RPC_SERVER=http://192.168.88.190:9000
- DRONE_RPC_SERVER=10.3.0.4:9000
- DRONE_RPC_SECRET=9c3921e3e748aff725d2e16ef31fbc42
- DRONE_RUNNER_CAPACITY=2
- DRONE_RUNNER_NAME=drone-agent
- DRONE_LOGS_DEBUG=true
- TZ=Asia/Shanghai
restart: always
#detach: true
networks:
my-network:
ipv4_address: 10.3.0.5
networks:
my-network:
external: true
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58