Skip to content

Small Docker module for setting up a development stack using Traefik

License

Notifications You must be signed in to change notification settings

jield-webdev/development-loadbalancer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Development docker loadbalancer

Small docker compose as entrypoint for a localhost docker development. This load balancer has the following service

  • Traefik
  • PHPMyadmin
  • Mailhog

Create a network first, but it is better to create a network per project

docker network create web 
docker network create itea 
docker network create ecp 
docker network create aeneas 
docker network create pa-portal 
docker network create permit-manager
docker network create solodb-xenics
docker network create solodb-rayleigh
docker network create solodb-tno
docker network create solodb-onelab
docker network create solodb-qutech
docker network create solodb-black-semiconductor
docker network create callisto
docker network create cebebelgica
docker network create 7mntn
docker network create drukdoor

Create a certificate via (macOS)

openssl req \
    -newkey rsa:2048 \
    -x509 \
    -nodes \
    -keyout certs/localhost.key \
    -new \
    -out certs/localhost.pem \
    -subj "/CN=*.docker.localhost" \
    -reqexts SAN \
    -extensions SAN \
    -config <(cat /System/Library/OpenSSL/openssl.cnf \
        <(printf '[SAN]\nsubjectAltName=DNS:*.docker.localhost')) \
    -sha256 \
    -days 3650

Create a certificate via (Linux)

openssl req \
    -newkey rsa:2048 \
    -x509 \
    -nodes \
    -keyout certs/localhost.key \
    -new \
    -out certs/localhost.pem \
    -subj "/CN=*.docker.localhost" \
    -reqexts SAN \
    -extensions SAN \
    -config <(cat /etc/ssl/openssl.cnf \
        <(printf '[SAN]\nsubjectAltName=DNS:*.docker.localhost')) \
    -sha256 \
    -days 3650

For linux take the /etc/...openssl.conf Trust the certificate in the host OS so the browser accepts the certificate

About

Small Docker module for setting up a development stack using Traefik

Resources

License

Stars

Watchers

Forks

Packages

No packages published