Two ways:
- Just execute
./gitlabfor a simple container - Use a Docker stack. First, create a password as a secret (one-time command):
echo "my_awesome_password" | docker secret create gitlab_root_password -- Then, deploy the stack:
docker stack deploy -c docker-compose.yml gitlab