stpe 5 added to create docker compose file fot gitlab

Co-authored-by: jmhbnz <mail@jamesblair.net>
This commit is contained in:
Daljit Singh
2021-02-03 19:03:25 +13:00
parent a5189e154b
commit 9fefffe183
2 changed files with 43 additions and 1 deletions

View File

@ -118,7 +118,28 @@ gcloud compute ssh $gcp_machine_name --ssh-key-file ~/.ssh/$USER -- "sudo chmod
* Step 5 - Install gitlab via docker
Coming soon...
Next step to create docker compose file for gitlab
#+begin_src yaml :tangle docker-compose.yaml
web:
image: 'gitlab/gitlab-ee:latest'
restart: always
hostname: 'gitlab.example.com'
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'https://gitlab.example.com'
# Add any other gitlab.rb configuration here, each on its own line
ports:
- '80:80'
- '443:443'
- '22:22'
volumes:
- '$GITLAB_HOME/config:/etc/gitlab'
- '$GITLAB_HOME/logs:/var/log/gitlab'
- '$GITLAB_HOME/data:/var/opt/gitlab'
#+end_src
* Step 6 - Teardown cloud resources

21
docker-compose.yaml Normal file
View File

@ -0,0 +1,21 @@
# Step 5 - Install gitlab via docker
# Next step to create docker compose file for gitlab
web:
image: 'gitlab/gitlab-ee:latest'
restart: always
hostname: 'gitlab.example.com'
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'https://gitlab.example.com'
# Add any other gitlab.rb configuration here, each on its own line
ports:
- '80:80'
- '443:443'
- '22:22'
volumes:
- '$GITLAB_HOME/config:/etc/gitlab'
- '$GITLAB_HOME/logs:/var/log/gitlab'
- '$GITLAB_HOME/data:/var/opt/gitlab'