Skip to content

Latest commit

 

History

64 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Role: Traefik WordPress

This Ansible playbook will Deploy & run Docker Compose project for WordPress instance. It will also configure Let's Encrypt certificates for specified domain. It consists of 4 separate containers running:

  • WordPress (PHP7 FPM)
  • Nginx
  • Traefik (enabled with Let's Encrpt HTTPS encryption)
  • MariaDB

This role was created as part of Traefik Wordpress

Requirements

For this role to work, it is required to have have Docker and Docker Compose installed and setup. If you haven't done this already (manually)

example vars.yml


system_user: ubuntu
project: domain
stage: local #local or production
domain: domain.com      
compose_project_dir: /home/{{ system_user }}/{{ domain }}

wp_version: 4.9.6
php_fmp_version: fpm-alpine
wp_db_name: wordpress
wp_db_tb_pre: wp_
wp_db_host: mysql
wp_db_psw: mysqlpassword

email: user@mail.com

Example Playbook

- hosts: all
  vars_files:
  - ./vars.yml
  roles:
  - traefik-wordpress

License

GPLv3

About

Deploy wordpress on docker with traefik proxy

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors