Skip to content

Instantly share code, notes, and snippets.

@fabsrc
Created December 24, 2017 02:28
Show Gist options
  • Save fabsrc/ba324faccf37ec75a6bf2bd9f315035b to your computer and use it in GitHub Desktop.
Save fabsrc/ba324faccf37ec75a6bf2bd9f315035b to your computer and use it in GitHub Desktop.
Drone with Gogs Docker Compose configuration
version: '2'
services:
drone-server:
image: drone/drone:latest
restart: unless-stopped
volumes:
- volume:/var/lib/drone/
environment:
- GIN_MODE=release
- DRONE_OPEN=false
- DRONE_HOST=${DRONE_HOST}
- DRONE_GOGS=true
- DRONE_GOGS_URL=${GOGS_URL}
- DRONE_GOGS_PRIVATE_MODE=true
- DRONE_SECRET=${DRONE_SECRET}
- DRONE_ADMIN=${DRONE_ADMIN}
- VIRTUAL_HOST=${VIRTUAL_HOST}
- VIRTUAL_PORT=8000
- LETSENCRYPT_HOST=${LETSENCRYPT_HOST}
- LETSENCRYPT_EMAIL=${LETSENCRYPT_EMAIL}
expose:
- "8000"
drone-agent:
image: drone/agent:latest
command: agent
restart: unless-stopped
depends_on:
- drone-server
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- DRONE_SERVER=drone-server:9000
- DRONE_SECRET=${DRONE_SECRET}
volumes:
volume:
networks:
default:
external:
name: nginx-proxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment