Select Page

Docker Installation .

 

 

Docker Compose File

Docker-Compose.yml

#Docker Compose Version
version: "3.5"

networks:
    wordpress:
    database:
services:
        wordpress:
                restart: always
                image: wordpress
                depends_on:
                        - wordpress-db
                ports: 
                        - "8090:80"
                volumes:
                        - ./volumes/wordpress/html:/var/www/html
                        - ./volumes/wordpress/logs:/var/log/apache2
                        - ./settings.ini:/usr/local/etc/php/conf.d/settings.ini
                environment:
                        - WORDPRESS_TABLE_PREFIX=wp_
                        - WORDPRESS_DB_USER=wordpress
                        - WORDPRESS_DB_PASSWORD=password
                        - WORDPRESS_DB_NAME=wordpress
                        - WORDPRESS_DB_HOST=wordpress-db
                networks:
                    - wordpress
                    - database
        wordpress-db:
                restart: always
                image: mysql:5.7
                volumes:
                        - ./volumes/mysql:/var/lib/mysql
                        - ./volumes/mysql_conf:/etc/mysql
                environment:
                        - MYSQL_DATABASE=wordpress
                        - MYSQL_USER=wordpress
                        - MYSQL_PASSWORD=password
                        - MYSQL_ROOT_PASSWORD=root_password
                        - MYSQL_SORT_BUFFER_SIZE=512k
                networks:
                    - database


 

 

settings.ini

file_uploads = On
memory_limit = 2000M
upload_max_filesize = 100M
post_max_size = 100M
max_execution_time = 0

Docker Compose with Lets encrypt compagnion

  • Sets up SSL Certificates

 

Example structure

 

 

 

 

WordPress Setup

 

wp-config.php

 

 

Development?

adminer?

 

Sample Plugin Structure

=> @rene see http-header-checker gitlab