1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/drone/docker-compose.yml

58 lines
1.2 KiB
YAML
Raw Normal View History

2019-10-01 07:46:26 +02:00
version: "3.7"
2016-05-31 17:16:56 +02:00
2019-10-01 07:36:54 +02:00
services:
2019-10-20 02:23:47 +02:00
2019-10-01 07:36:54 +02:00
drone:
2019-10-20 02:23:47 +02:00
image: drone/drone:1.6-linux-amd64
2019-10-01 07:36:54 +02:00
ports:
- "8080:80"
volumes:
- ./data/drone:/data
environment:
- DRONE_SERVER_HOST=drone
- DRONE_SERVER_PROTO=http
- DRONE_RPC_SECRET=secret
- DRONE_DATABASE_DRIVER=postgres
- DRONE_DATABASE_DATASOURCE=postgres://drone:drone@postgres:5432/drone?sslmode=disable
- DRONE_GOGS_SERVER=http://gogs:3000
- DRONE_AGENTS_ENABLED=true
depends_on:
- postgres
- gogs
restart: always
agent:
2019-10-20 02:23:47 +02:00
image: drone/agent:1.6-linux-amd64
2019-10-01 07:36:54 +02:00
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- DRONE_RPC_PROTO=http
- DRONE_RPC_HOST=drone
- DRONE_RPC_SECRET=secret
- DRONE_RUNNER_NAME=agent
- DRONE_RUNNER_CAPACITY=2
depends_on:
- drone
restart: always
postgres:
image: postgres:12-alpine
ports:
- "5432:5432"
volumes:
- ./data/postgres:/var/lib/postgresql/data
environment:
- POSTGRES_USER=drone
- POSTGRES_PASSWORD=drone
- POSTGRES_DB=drone
restart: always
gogs:
image: gogs/gogs
ports:
- "2222:22"
- "3000:3000"
volumes:
- ./data/gogs:/data
restart: always