-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
39 lines (37 loc) · 959 Bytes
/
docker-compose.yml
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
version: '2'
services:
# drone server
drone-server:
image: drone/drone:0.8
ports:
- 8000:8000
- 9000:9000
volumes:
- ./drone:/var/lib/drone
restart: always
env_file: taskapp/.env
environment:
# - GIN_MODE=release
- DRONE_OPEN=true
- DRONE_ORGS=PilotFiber
- DRONE_ADMIN=kagbodji
- DRONE_GITHUB=true
- DRONE_YAML=${DRONE_YAML}
- DRONE_HOST=${DRONE_HOST}
- DRONE_ADMIN=${DRONE_ADMIN}
- DRONE_GITHUB_CONTEXT=${DRONE_GITHUB_CONTEXT}
- DRONE_GITHUB_CLIENT=${DRONE_GITHUB_CLIENT}
- DRONE_GITHUB_SECRET=${DRONE_GITHUB_SECRET}
- DRONE_SECRET=${DRONE_SECRET}
# drone agent
drone-agent:
image: drone/agent:0.8
restart: always
command: agent
depends_on:
- drone-server
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- DRONE_SERVER=drone-server:9000
- DRONE_SECRET=${DRONE_SECRET}