drone-ci-configs/etc/drone/docker-compose.yml

55 lines
1.1 KiB
YAML

---
version: '3.8'
services:
drone-server:
image: drone/drone:2.12.1
cpus: 1.1
mem_limit: 128m
ports:
- 127.0.0.1:8000:8000
volumes:
- /var/lib/drone:/var/lib/drone
- /var/run/docker.sock:/var/run/docker.sock
restart: unless-stopped
labels:
- traefik.enable=false
env_file:
- /etc/drone/server.env
drone-runner-docker:
image: drone/drone-runner-docker:1.8.2
depends_on:
- drone-server
mem_limit: 3.3g
ports:
# - 127.0.0.1:5000:5000
- 127.0.0.1:3333:3000
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /etc/localtime:/etc/localtime:ro
tmpfs: '/run,/tmp,/etc,/drone'
restart: always
labels:
- traefik.enable=false
env_file:
- /etc/drone/runner-docker.env
drone-gc:
image: drone/gc:latest
depends_on:
- drone-server
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /etc/localtime:/etc/localtime:ro
restart: always
labels:
- traefik.enable=false
environment:
- GC_DEBUG=false
- GC_CACHE=59gb
- GC_INTERVAL=1h
mem_limit: 8m
cpu: 0.2
...