Skip to content

Instantly share code, notes, and snippets.

@jcpowermac
Last active December 2, 2016 13:40
Show Gist options
  • Select an option

  • Save jcpowermac/41b0ea92c9b03c0decaad2645da57c8e to your computer and use it in GitHub Desktop.

Select an option

Save jcpowermac/41b0ea92c9b03c0decaad2645da57c8e to your computer and use it in GitHub Desktop.
diff --git a/docker/RELEASE b/docker/RELEASE
new file mode 100644
index 0000000..b6e012c
--- /dev/null
+++ b/docker/RELEASE
@@ -0,0 +1,4 @@
+RELEASE_PACKAGE=gitlab-ee
+RELEASE_VERSION=8.14.1-ee.0
+PACKAGECLOUD_REPO=gitlab-ee
+
diff --git a/docker/docker-compose-old.yml b/docker/docker-compose-old.yml
new file mode 100644
index 0000000..3fa3752
--- /dev/null
+++ b/docker/docker-compose-old.yml
@@ -0,0 +1,15 @@
+web:
+ image: 'gitlab/gitlab-ce:latest'
+ restart: always
+ hostname: 'gitlab.example.com'
+ environment:
+ GITLAB_OMNIBUS_CONFIG: |
+ external_url 'https://gitlab.example.com'
+ ports:
+ - '80:80'
+ - '443:443'
+ - '22:22'
+ volumes:
+ - '/srv/gitlab/config:/etc/gitlab'
+ - '/srv/gitlab/logs:/var/log/gitlab'
+ - '/srv/gitlab/data:/var/opt/gitlab'
diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml
index 3fa3752..4e90864 100644
--- a/docker/docker-compose.yml
+++ b/docker/docker-compose.yml
@@ -1,15 +1,17 @@
-web:
- image: 'gitlab/gitlab-ce:latest'
- restart: always
- hostname: 'gitlab.example.com'
- environment:
- GITLAB_OMNIBUS_CONFIG: |
- external_url 'https://gitlab.example.com'
- ports:
- - '80:80'
- - '443:443'
- - '22:22'
- volumes:
- - '/srv/gitlab/config:/etc/gitlab'
- - '/srv/gitlab/logs:/var/log/gitlab'
- - '/srv/gitlab/data:/var/opt/gitlab'
+version: '2'
+services:
+ web:
+ image: 'gitlab'
+ restart: always
+ hostname: '10.53.252.55'
+ environment:
+ GITLAB_OMNIBUS_CONFIG: |
+ external_url 'https://10.53.252.55'
+ ports:
+ - '0.0.0.0:80:80'
+ - '0.0.0.0:443:443'
+ - '0.0.0.0:2222:22'
+ volumes:
+ - /srv/gitlab/config:/etc/gitlab:Z
+ - /srv/gitlab/logs:/var/log/gitlab:Z
+ - /srv/gitlab/data:/var/opt/gitlab:Z
mkdir -p /srv/gitlab/{config,logs,data}
mkdir -p /srv/gitlab/config/ssl
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /srv/gitlab/config/ssl/10.53.252.55.key -out /srv/gitlab/config/ssl/10.53.252.55.crt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment