This repository provides a Docker Swarm stack for deploying GitLab CE along with PostgreSQL, Redis, and Nginx as a reverse proxy.
- Deploys GitLab CE using Docker Swarm.
- Includes PostgreSQL for GitLab database management.
- Integrates Redis for caching.
- Uses Nginx as a reverse proxy.
- Persistent storage using Docker volumes.
- Docker and Docker Compose installed.
- A running Docker Swarm cluster.
git clone https://github.com/your-username/gitlab-docker-swarm.git
cd gitlab-docker-swarmdocker swarm initdocker stack deploy -c docker-stack.yml gitlab_stack- Open your browser and navigate to:
http://your_domain - Default root password is set in
docker-stack.ymlunder:gitlab_rails['initial_root_password']
-
GitLab Data Storage
Gitlab_Data/configs:/etc/gitlabGitlab_Data/data:/var/opt/gitlabGitlab_Data/logs:/var/log/gitlab
-
PostgreSQL Credentials (Defined in
docker-stack.yml)POSTGRES_USER: gitlabPOSTGRES_PASSWORD: 123POSTGRES_DB: gitlabhq_production
-
Nginx Reverse Proxy Configuration
- Located in
Nginx/nginx.conf
- Located in
To stop and remove all services:
docker stack rm gitlab_stackThis project is open-source and available under the MIT License.
Feel free to submit issues or pull requests to improve this stack.
⭐ Star this repo if you find it useful!
Let me know if you want any modifications! 🚀