Created
June 25, 2017 21:20
-
-
Save mbenedettini/41614f7084f3ce59847e902ace1c67c5 to your computer and use it in GitHub Desktop.
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
# Docker registry (distribution) + Drone 0.5 | |
version: '2' | |
services: | |
registry-srv: | |
restart: always | |
image: registry:2 | |
environment: | |
- VIRTUAL_HOST=registry.codexia.io | |
- VIRTUAL_PORT=5000 | |
- LETSENCRYPT_HOST=registry.codexia.io | |
- [email protected] | |
# Make nginx-proy use ssl, required to have basic auth | |
- VIRTUAL_PROTO=https | |
- REGISTRY_HTTP_TLS_CERTIFICATE=/certs/registry.codexia.io.crt | |
- REGISTRY_HTTP_TLS_KEY=/certs/registry.codexia.io.key | |
- REGISTRY_AUTH=htpasswd | |
- REGISTRY_AUTH_HTPASSWD_PATH=/auth/htpasswd | |
- REGISTRY_AUTH_HTPASSWD_REALM=Registry Realm | |
volumes: | |
- /storage/registry/data:/var/lib/registry | |
- /storage/nginx-proxy/certs:/certs | |
- /storage/registry/auth:/auth | |
drone-server: | |
image: drone/drone:0.5 | |
volumes: | |
- /storage/drone:/var/lib/drone/ | |
restart: always | |
env_file: .env | |
environment: | |
- VIRTUAL_HOST=drone.codexia.io | |
- VIRTUAL_PORT=8000 | |
- LETSENCRYPT_HOST=drone.codexia.io | |
- [email protected] | |
- DRONE_OPEN=true | |
- DRONE_BITBUCKET=true | |
- DRONE_ADMIN=mbenedettini | |
- GIN_MODE=release | |
drone-agent: | |
image: drone/drone:0.5 | |
command: agent | |
restart: always | |
depends_on: [ drone-server ] | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
env_file: .env | |
environment: | |
- DRONE_SERVER=ws://drone-server:8000/ws/broker | |
- GIN_MODE=release | |
networks: | |
default: | |
external: | |
name: nginx-proxy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment