Skip to content

Instantly share code, notes, and snippets.

@thatnerdjosh
Created August 23, 2015 03:18
Show Gist options
  • Save thatnerdjosh/d26a95fd2d10c60a8c79 to your computer and use it in GitHub Desktop.
Save thatnerdjosh/d26a95fd2d10c60a8c79 to your computer and use it in GitHub Desktop.
---
- hosts: local
tasks:
- name: Go.cd Data Container
docker:
name: gocd-data
image: gocd/gocd-server
state: present
volumes:
- /usr/log/go-server
- /usr/lib/go-server
- /etc/go
- name: Go.cd Deployment Server
docker:
name: gocd
image: gocd/gocd-server
state: started
volumes_from:
- gocd-data
ports:
- "8153:8153"
- name: Gitlab Data Container
docker:
name: gitlab-data
image: gitlab/gitlab-ce
state: present
volumes:
- /etc/gitlab
- /var/log/gitlab
- /var/opt/gitlab
- name: Gitlab Server
docker:
name: gitlab
image: gitlab/gitlab-ce
state: started
volumes_from:
- gitlab-data
ports:
- "8080:80"
- "2222:22"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment