-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose.yml
57 lines (54 loc) · 1.49 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
version: '3'
services:
gogs:
container_name: gogs
image: gogs/gogs:0.12
ports:
- ${GOGS_PORT:-3000}:3000
volumes:
- ./.data/gogs/data:/data
environment:
- TZ=Asia/Shanghai
restart: always
drone-server:
image: drone/drone:1.2.1
container_name: drone-server
ports:
- ${DRONE_SERVER_PORT:-8000}:80
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./.data/drone/:/var/lib/drone
environment:
- DRONE_OPEN=true
- DRONE_SERVER_HOST=${DRONE_SERVER_IP}:${DRONE_SERVER_PORT:-8000}
- DRONE_DEBUG=true
- DRONE_GIT_ALWAYS_AUTH=false
- DRONE_GOGS=true
- DRONE_GOGS_SKIP_VERIFY=false
- DRONE_GOGS_SERVER=http://gogs:3000
- DRONE_PROVIDER=gogs
- DRONE_SERVER_PROTO=http
- DRONE_RPC_SECRET=${DRONE_RPC_SECRET}
- DRONE_USER_CREATE=username:${DRONE_ADMIN},admin:true
- DRONE_DATABASE_DATASOURCE=/var/lib/drone/drone.sqlite
- DRONE_DATABASE_DRIVER=sqlite3
- TZ=Asia/Shanghai
restart: always
drone-agent:
image: drone/agent:1.2.1
container_name: drone-agent
depends_on:
- drone-server
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- DRONE_RPC_SERVER=drone-server:9000
- DRONE_RPC_SECRET=${DRONE_RPC_SECRET}
- DRONE_RUNNER_CAPACITY=${DRONE_RUNNER_CAPACITY:-2}
- DRONE_DEBUG=true
- TZ=Asia/Shanghai
restart: always
networks:
default:
external:
name: ev-dev-network