Skip to content

Instantly share code, notes, and snippets.

@binarytemple-external
Last active April 24, 2017 16:37
Show Gist options
  • Save binarytemple-external/0c1dd115eb8d0ff960363d1ddce329cc to your computer and use it in GitHub Desktop.
Save binarytemple-external/0c1dd115eb8d0ff960363d1ddce329cc to your computer and use it in GitHub Desktop.
docker-compose to try and boot a full stack to run drone cd against ..
version: '2'
services:
redis:
restart: always
image: sameersbn/redis:latest
command:
- --loglevel warning
volumes:
- ./srv-docker-gitlab-redis:/var/lib/redis:Z
postgresql:
restart: always
image: sameersbn/postgresql:9.6-2
volumes:
- ./srv-docker-gitlab-postgresql:/var/lib/postgresql:Z
environment:
- DB_USER=gitlab
- DB_PASS=password
- DB_NAME=gitlabhq_production
- DB_EXTENSION=pg_trgm
dgitlab:
restart: always
image: sameersbn/gitlab:9.0.5
depends_on:
- redis
- postgresql
ports:
- "10080:10080"
- "10022:22"
volumes:
- ./srv-docker-gitlab-gitlab:/home/git/data:Z
environment:
- DEBUG=false
- DB_ADAPTER=postgresql
- DB_HOST=postgresql
- DB_PORT=5432
- DB_USER=gitlab
- DB_PASS=password
- DB_NAME=gitlabhq_production
- REDIS_HOST=redis
- REDIS_PORT=6379
- GITLAB_HTTPS=false
- SSL_SELF_SIGNED=false
- GITLAB_HOST=dgitlab
- GITLAB_PORT=10080
- GITLAB_SSH_PORT=10022
- GITLAB_RELATIVE_URL_ROOT=
- GITLAB_SECRETS_DB_KEY_BASE=long-and-random-alphanumeric-string
- GITLAB_SECRETS_SECRET_KEY_BASE=long-and-random-alphanumeric-string
- GITLAB_SECRETS_OTP_KEY_BASE=long-and-random-alphanumeric-string
- GITLAB_ROOT_PASSWORD=
- GITLAB_ROOT_EMAIL=
- GITLAB_NOTIFY_ON_BROKEN_BUILDS=true
- GITLAB_NOTIFY_PUSHER=false
- GITLAB_EMAIL=notifications@example.com
- GITLAB_EMAIL_REPLY_TO=noreply@example.com
- GITLAB_INCOMING_EMAIL_ADDRESS=reply@example.com
- GITLAB_BACKUP_SCHEDULE=daily
- GITLAB_BACKUP_TIME=01:00
- SMTP_ENABLED=false
- IMAP_ENABLED=false
- OAUTH_ENABLED=true
drone-server:
image: drone/drone:latest
ports:
- "8000:8000"
volumes:
- ./drone-gitlab:/var/lib/drone/
- /tmp/fake:/var/run/docker.sock
restart: always
environment:
- DRONE_OPEN=true
- DRONE_BROKER_DEBUG=true
- DRONE_DEBUG=true
- DRONE_GITLAB=true
- DRONE_GITLAB_URL=http://dgitlab:10080
- DRONE_GITLAB_CLIENT=xxxxxxxxxxxxxxxxxxxxxx
- DRONE_GITLAB_SECRET=xxxxxxxxxxxxxxxxxxxxxx
- DRONE_GITLAB_SKIP_VERIFY=true
- DRONE_GITLAB_PRIVATE_MODE=true
- DRONE_SECRET=foobar
- DRONE_ADMIN=root
- DRONE_NETWORK=pocdrone_default
drone-agent:
image: drone/drone:latest
command: agent
restart: always
depends_on:
- drone-server
- dgitlab
volumes:
- /tmp/fake:/var/run/docker.sock
environment:
- DRONE_SERVER=ws://drone-server:8000/ws/broker
- DRONE_SECRET=foobar
- DRONE_NETWORK=pocdrone_default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment