I got a running revers-proxy with an acme companion for https.
But i want to move to use trafik instead, because somehow the used image repo paths seems to be dead and I got issues how to solve basic_auth for a subfolder.
This is my docker-compose.yml for the reverse-proxy:
version: '3.7'
services:
reverse-proxy:
image: 'nginxproxy/nginx-proxy:latest'
container_name: 'reverse-proxy'
volumes:
- 'html:/usr/share/nginx/html'
- 'dhparam:/etc/nginx/dhparam'
- 'vhost:/etc/nginx/vhost.d'
- 'certs:/etc/nginx/certs'
- '/run/docker.sock:/tmp/docker.sock:ro'
restart: 'always'
networks:
- 'net'
ports:
- '80:80'
- '443:443'
letsencrypt:
image: 'nginxproxy/acme-companion:latest'
container_name: 'letsencrypt-helper'
volumes:
- 'html:/usr/share/nginx/html'
- 'dhparam:/etc/nginx/dhparam'
- 'vhost:/etc/nginx/vhost.d'
- 'certs:/etc/nginx/certs'
- 'acme:/etc/acme.sh'
- '/run/docker.sock:/var/run/docker.sock:ro'
environment:
NGINX_PROXY_CONTAINER: 'reverse-proxy'
ACME_EMAIL: me@mail.com
ACME_CA_URI: 'https://acme.zerossl.com/v2/DV90'
restart: 'always'
depends_on:
- 'reverse-proxy'
networks:
- 'net'
volumes:
certs:
html:
vhost:
dhparam:
acme:
networks:
net:
external: true
and this is i.e. of a running client docker-compose.yml
version: "3.3"
services:
mytool:
image: "me/frontend-prod:latest"
container_name: "myfrontendtool"
restart: unless-stopped
environment:
APP_ENV: production
VIRTUAL_HOST: "my.domain.com"
VIRTUAL_PORT: 80
LETSENCRYPT_HOST: "my.domain.com"
LETSENCRYPT_EMAIL: me@mail.com
networks:
- net
volumes:
- ./:/app
networks:
net:
external: true
My question is: How can i transfer this composers to traefik composers?
It's really hard to get this out of the docs here. I'm missing such an example.
Appreciating any hints.
Thx in adanvce.