Last active
February 18, 2019 08:38
-
-
Save Rukeith/6959434b94f9732f74ec95ec82eba3cc to your computer and use it in GitHub Desktop.
DevOps Docker Compose
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: "3.7" | |
services: | |
gitlab: | |
image: "gitlab/gitlab-ce" | |
container_name: "gitlab" | |
labels: | |
- "SERVICE=gitlab" | |
restart: always | |
hostname: "localhost" | |
networks: | |
- gitlab-network | |
ports: | |
- "443:443" | |
- "80:80" | |
- "22:22" | |
volumes: | |
- "/srv/gitlab/gitlab.rb:/etc/gitlab/gitlab.rb" | |
- "/srv/gitlab/config:/etc/gitlab" | |
- "/srv/gitlab/logs:/var/log/gitlab" | |
- "/srv/gitlab/data:/var/opt/gitlab" | |
networks: | |
gitlab-network: | |
name: gitlab-network |
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: "3.7" | |
services: | |
jenkins: | |
image: jenkins/jenkins | |
container_name: shopee-jenkins | |
labels: | |
- "PROJECT=jenkins" | |
ports: | |
- "5000:5000" | |
- "8080:8080" | |
volumes: | |
- "/mnt/shopee/backup/jenkins:/var/jenkins_home" | |
networks: | |
- jenkins-network | |
networks: | |
jenkins-network: | |
name: jenkins-network |
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: "3.7" | |
services: | |
registry: | |
image: registry:2 | |
container_name: docker-registry | |
labels: | |
- "PROJECT=registry" | |
ports: | |
- 6201:5000 | |
networks: | |
- docker-registry-network | |
environment: | |
- REGISTRY_STORAGE_DELETE_ENABLED=true | |
volumes: | |
- "/backup/registry/images:/var/lib/registry" | |
- "/backup/registry/config/config.yml:/etc/docker/registry/config.yml" | |
registry-ui: | |
image: konradkleine/docker-registry-frontend:v2 | |
container_name: registry-ui | |
labels: | |
- "PROJECT=registry" | |
ports: | |
- 6200:80 | |
networks: | |
- docker-registry-network | |
environment: | |
- ENV_DOCKER_REGISTRY_PORT=5000 | |
- ENV_DOCKER_REGISTRY_HOST=registry | |
depends_on: | |
- registry | |
networks: | |
docker-registry-network: | |
name: docker-registry-network | |
labels: | |
- "PROJECT=registry" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment