User:SBassett (WMF)/Explorations/Gitlab

Gitlab development environment setup
sudo docker run --detach \ --hostname gitlab.example.com \ --publish 8443:443 --publish 8083:80 --publish 8022:22 \ --name gitlab \ --restart always \ --volume $GITLAB_HOME/config:/etc/gitlab \ --volume $GITLAB_HOME/logs:/var/log/gitlab \ --volume $GITLAB_HOME/data:/var/opt/gitlab \ gitlab/gitlab-ce:latest web: image: 'gitlab/gitlab-ce:latest' restart: always hostname: 'gitlab.local.dev' environment: GITLAB_OMNIBUS_CONFIG: | external_url 'http://gitlab.local.dev' # Add any other gitlab.rb configuration here, each on its own line ports: - '8443:443'   - '8083:80'    - '8022:22'  volumes: - '$GITLAB_HOME/config:/etc/gitlab' - '$GITLAB_HOME/logs:/var/log/gitlab' - '$GITLAB_HOME/data:/var/opt/gitlab'
 * Install Docker locally, if you haven't. Probably via Docker Desktop: https://docs.docker.com/desktop/
 * Pull the docker image:, the   tag is likely fine.
 * Set up the GITLAB_HOME environment variable (and obviously ):
 * For Linux:
 * For macOS:
 * Basic  command:
 * Or if you don't like, try a docker-compose setup:
 * Create a  file within your GITLAB_HOME, and customize hostnames, ports, etc, if needed:
 * Then run  to run the container in the background.
 * You'll likely also need to add an entry to your  (or similar) file, for any custom hostnames.
 * Once running, the container can be entered via bash by running:
 * If you make changes to gitlab, you can restart the container by running:
 * Stop the gitlab container:
 * Remove the gitlab container:

Gitlab doc

 * WG doc
 * Wikimedia Gitlab workflows
 * Gitlab CE docker hub page
 * Gitlab docker setup documentation
 * Python Gitlab package