Gitlab, verified and packaged by Elestio
272
Gitlab an Open Source code repository and collaborative software development platform.
Deploy a fully managed Gitlab on elest.io Create your own online database without technical experience. This user-friendly no-code tool gives you the powers of a developer without leaving your browser.
You can deploy it easily with the following command:
git clone https://github.com/elestio-examples/gitlab.git
Copy the .env file from tests folder to the project directory
cp ./tests/.env ./.env
Edit the .env file with your own values.
Run the project with the following command
docker-compose up -d
You can access the Web UI at: http://your-domain:8080
Here are some example snippets to help you get started creating a container. version: "2.3"
services:
gitlab:
container_name: gitlab
image: gitlab/gitlab-ce:latest
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'https://DOMAIN';
nginx['redirect_http_to_https'] = false;
nginx['listen_https'] = false;
nginx['listen_port'] = 80;
gitlab_rails['gitlab_shell_ssh_port'] = 22022;
gitlab_rails['initial_root_password'] = '[APP_PASSWORD]';
gitlab_rails['smtp_enable'] = true;
gitlab_rails['smtp_address'] = '172.17.0.1';
gitlab_rails['smtp_port'] = 25;
gitlab_rails['smtp_domain'] = '[DOMAIN]';
gitlab_rails['smtp_tls'] = false;
gitlab_rails['smtp_openssl_verify_mode'] = 'none';
gitlab_rails['smtp_enable_starttls_auto'] = false;
gitlab_rails['smtp_ssl'] = false;
gitlab_rails['smtp_force_ssl'] = false;
gitlab_rails['gitlab_email_from'] = '[DOMAIN]@vm.elestio.app';
gitlab_rails['gitlab_email_reply_to'] = '[DOMAIN]@vm.elestio.app';
gitlab_rails['gitlab_signup_enabled'] = false
volumes:
- ./config:/etc/gitlab
- ./logs:/var/log/gitlab
- ./data:/var/opt/gitlab
restart: always
ports:
- "172.17.0.1:8080:80"
- "22022:22"
The Elestio Gitlab Docker image sends the container logs to stdout. To view the logs, you can use the following command:
docker-compose logs -f
To stop the stack you can use the following command:
docker-compose down
To make backup and restore operations easier, we are using folder volume mounts. You can simply stop your stack with docker-compose down, then backup all the files and subfolders in the folder near the docker-compose.yml file.
Creating a ZIP Archive For example, if you want to create a ZIP archive, navigate to the folder where you have your docker-compose.yml file and use this command:
zip -r myarchive.zip .
Restoring from ZIP Archive To restore from a ZIP archive, unzip the archive into the original folder using the following command:
unzip myarchive.zip -d /path/to/original/folder
Starting Your Stack Once your backup is complete, you can start your stack again with the following command:
docker-compose up -d
That's it! With these simple steps, you can easily backup and restore your data volumes using Docker Compose.
Content type
Image
Digest
sha256:a9d2d863c…
Size
1.3 GB
Last updated
over 2 years ago
docker pull elestio4test/gitlab