diff --git a/README.org b/README.org index e8a29c0..1b071aa 100644 --- a/README.org +++ b/README.org @@ -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 diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..49100db --- /dev/null +++ b/docker-compose.yaml @@ -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'