clebio / docker-builders

A collection of Docker deployments for various purposes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker Builders

A collection of Docker deployments for various purposes.

Gitlab

The Gitlab CE Docker image. Uses Postgres and Redis images for database persistence. Uses external volumes to persist data; for initial set up, run:

docker volume create --name vdb
docker volume create --name logs
docker volume create --name gitlab_config
docker volume create --name gitlab_data
docker volume create --name gitlab_logs

Then just

docker-compose -f gitlab.yml up -d

Gitlab takes a few minutes to start and configure itself. Incidentally, this means Redis and Postgres are ready by the time it runs.

Load Balancers

We can use either Nginx or HA Proxy as a load balancer, and put two instances of Gitlab behind either as a minimal "balanced" web layer. It ought to be as simple as switching the build: line for the lb service in the compose file.

About

A collection of Docker deployments for various purposes.