My vServer setup to run Gitlab and a simple Webserver. Using [docker-compose] (https://docs.docker.com/compose/) for easy deployment. The folowing offical containers are used:
- docker Install Doc
- docker-compose
apache2-utils
- Domain with subdomains (www, git, monitor) pointing to your vServers public ip adress.
- Clone Repo
- Generate password wirh
htpasswd
htpasswd -nb admin secure_password
- Edit
traefik.toml
- Edit all
docker-compose.yml
- use
docker-compose up -d
to start traefik - Edit
/gitlab/docker-compose.yml
- Move into subdirectories and start services with
docker-compose up -d
You can find your files hier:
- Gitlab
/gitlab/config
/gitlab/logs
/gitlab/data
- Webserver
/webserver/html
- https://stackoverflow.com/questions/48408184/traefik-will-issue-certificate-instead-of-lets-encrypt
- https://docs.traefik.io/configuration/acme/#onhostrule
- https://docs.traefik.io/configuration/acme/
- https://www.digitalocean.com/community/tutorials/how-to-use-traefik-as-a-reverse-proxy-for-docker-containers-on-ubuntu-16-04 :
- https://www.reddit.com/r/docker/comments/8mwuf8/gitlab_wont_work_with_traefik/