Skip to content

A simple compose script wich will allow you to run traefik and wordpress with MySQL and docker.

Notifications You must be signed in to change notification settings

jenssgb/traefik-and-wordpress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Traefik and Wordpress

A simple compose script wich will allow you to run traefik and wordpress with MySQL and docker.

Please note

  • This is for lab and testing purposes only.
  • For safety reasons it is absolutely necessary to deal with all elements in detail.

How to use:

  • Register a domain
  • Add the IP Adress of your Linux Server to the Domain DNS A-Record
  • Open Port 80 (HTTP) 443 (HTTPS) & 8080 (Traefig UI) to your Server inbound
  • Clone the Code to your Linux Server
  • Check if docker and docker compose is installed
  • Change the strings (See below)
  • Start the strack:
  • Testing: docker compose up (with logs)
  • Production: docker compose up -d (no logs ; detached mode)
  • Start the wordpress installer in your browser (https://example.com)
  • See the Traefik UI in your browser (http://example.com:8080)

Replace the following strings

Traefik Container:

  - "--certificatesresolvers.myresolver.acme.email=<<< PLEASE ADD YOUR E-MAIL ADRESS >>>"

Wordpress Container:

  WORDPRESS_DB_USER: <<<<< PLEASE ADD >>>>>> 
  WORDPRESS_DB_PASSWORD: <<<<< PLEASE ADD >>>>>> 
  WORDPRESS_DB_NAME: <<<<< PLEASE ADD >>>>>> 
  
  - "traefik.http.routers.wordpress.rule=Host(`<<< PLEASE ADD >>>`)"
  - "traefik.http.routers.wordpress-secured.rule=Host(`<<< PLEASE ADD >>>`)"

Database Container:

  MYSQL_DATABASE: <<<<< PLEASE ADD >>>>>> 
  MYSQL_USER: <<<<< PLEASE ADD >>>>>> 
  MYSQL_PASSWORD: <<<<< PLEASE ADD >>>>>> 

About

A simple compose script wich will allow you to run traefik and wordpress with MySQL and docker.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published