Skip to content

Instantly share code, notes, and snippets.

@lazyfrosch
Created July 29, 2016 06:46
Show Gist options
  • Save lazyfrosch/2f95aa2adcec0ef3af3c0038635a3a53 to your computer and use it in GitHub Desktop.
Save lazyfrosch/2f95aa2adcec0ef3af3c0038635a3a53 to your computer and use it in GitHub Desktop.
Docker via Puppet
---
docker::run_instance::instance:
gitlab-redis:
image: redis
volumes:
- '/data/services/gitlab/redis/data:/data'
gitlab:
image: sameersbn/gitlab:8.10.1
volumes:
- '/data/services/gitlab/data:/home/git/data'
env_file:
- /data/services/gitlab/environment
ports:
- 5.9.9.19:22:22
- 127.0.0.1:10080:8181
links:
- gitlab-redis:redisio
after:
- gitlab-redis
depend_services:
- postgresql@9.4-main
class profiles::docker
{
include ::docker
$_instances = hiera('docker::run_instance::instance', undef)
if is_hash($_instances) {
include ::docker::run_instance
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment