based on https://github.com/nginx-proxy/acme-companion
This repo contains the docker-compose.yml
files used to set up my vServer to host multiple docker containers all with SSL.
A complete documentation can be found in the original repo.
First you need to create a docker network with the following command:
docker network create nginx_network
Before you can start the containers with
docker-compose up --build -d
In order to serve a container to a specified domain, follow those steps.
The sub folder ./grafana/
contains a simple Grafana setup.
-
Change your DNS settings to point the domain to your server
-
Add the following lines the end of your
docker-compose.yml
:networks: nginx_network: external: name: nginx_network
-
For each service add the following settings:
environment: VIRTUAL_HOST: monitoring.emeal.ch # your domain name LETSENCRYPT_HOST: monitoring.emeal.ch # your domain name LETSENCRYPT_EMAIL: info@emeal.ch # a valid mail address networks: - nginx_network