Skip to content

Instantly share code, notes, and snippets.

@harimau99
Forked from ljdelight/docker-compose.yml
Created April 9, 2019 10:41
Show Gist options
  • Save harimau99/aadf772a134d9edb3d81286f7edff93f to your computer and use it in GitHub Desktop.
Save harimau99/aadf772a134d9edb3d81286f7edff93f to your computer and use it in GitHub Desktop.

Revisions

  1. @ljdelight ljdelight created this gist Apr 24, 2017.
    32 changes: 32 additions & 0 deletions docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,32 @@
    #
    # Simple docker-compose file for Gitlab CE and a Jenkins master.
    # This is for testing and builds are done on the jenkins master.
    #

    version: "2"

    services:
    gitlab:
    image: "gitlab/gitlab-ce:8.15.2-ce.0"
    container_name: "gitlab"
    restart: "always"
    hostname: "gitlab"
    ports:
    - "8081:80"
    volumes:
    - "/opt/automation/gitlab/config:/etc/gitlab"
    - "/opt/automation/gitlab/logs:/var/log/gitlab"
    - "/opt/automation/gitlab/data:/var/opt/gitlab"
    environment:
    GITLAB_OMNIBUS_CONFIG: |
    external_url "http://gitlab"
    jenkins-master:
    image: "jenkins:2.19.4"
    container_name: "jenkins-master"
    restart: "always"
    ports:
    - "8080:8080"
    - "50000:50000"
    volumes:
    - "/opt/automation/jenkins-master:/var/jenkins_home"