Created
March 10, 2017 07:59
-
-
Save piti118/a9d649d4db5cf4f885db531454e68d36 to your computer and use it in GitHub Desktop.
drone https
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
nginx-proxy: | |
image: jwilder/nginx-proxy | |
ports: | |
- "80:80" | |
- "443:443" | |
volumes: | |
- /certs:/etc/nginx/certs:ro | |
- /etc/nginx/vhost.d | |
- /usr/share/nginx/html | |
- /var/run/docker.sock:/tmp/docker.sock:ro | |
letsencrypt-nginx-proxy-companion: | |
image: jrcs/letsencrypt-nginx-proxy-companion | |
volumes_from: | |
- nginx-proxy | |
depends_on: | |
- nginx-proxy | |
volumes: | |
- /certs:/etc/nginx/certs:rw | |
- /usr/share/nginx/html | |
- /etc/nginx/vhost.d | |
- /var/run/docker.sock:/var/run/docker.sock:ro | |
drone-server: | |
image: drone/drone:latest | |
expose: | |
- 8000 | |
volumes: | |
- ./drone:/var/lib/drone/ | |
depends_on: | |
- letsencrypt-nginx-proxy-companion | |
environment: | |
- DRONE_OPEN=true | |
- DRONE_ORGS=CHANGETHIS!!!! | |
- DRONE_BITBUCKET=true | |
- DRONE_ADMIN=CHANGETHIS!!!! | |
- DRONE_BITBUCKET_CLIENT=CHANGETHIS!!!! | |
- DRONE_SECRET=CHANGETHIS!!!! | |
- DRONE_BITBUCKET_SECRET=CHANGETHIS!!!! | |
- VIRTUAL_HOST=CHANGETHIS!!!! | |
- LETSENCRYPT_HOST=CHANGETHIS!!!! | |
- LETSENCRYPT_EMAIL=CHANGETHIS!!!! | |
drone-agent: | |
image: drone/drone:0.5 | |
command: agent | |
restart: always | |
depends_on: | |
- drone-server | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
environment: | |
- DRONE_SECRET=CHANGETHIS!!!! | |
- DRONE_SERVER=ws://drone-server:8000/ws/broker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice. I'm going to try updating this.