Skip to content

Commit

Permalink
ADD | wordpress | Mailhog
Browse files Browse the repository at this point in the history
  • Loading branch information
SerhiiMazurBeetroot committed Oct 19, 2023
1 parent 319d770 commit f821296
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 28 deletions.
16 changes: 15 additions & 1 deletion .env-core/templates/wordpress/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,20 @@ PMA_PORT=3306
PMA_USER="${MYSQL_ROOT_USER}"
PMA_PASSWORD="${MYSQL_ROOT_PASSWORD}"


#--------------------------------------------------------------------------------------------------#
# SMTP SETTINGS #
#--------------------------------------------------------------------------------------------------#
SMTP_HOST={DOMAIN_FULL}-mail
SMTP_PORT=1025
SMTP_USER=null
SMTP_PASSWORD=null
SMTP_FROM='[email protected]'
SMTP_FROM_NAME='WordPress'
SMTP_VIRTUAL_HOST={DOMAIN_FULL}.mail
SMTP_AUTH=0
SMTP_SECURE=0

#--------------------------------------------------------------------------------------------------#
# HOME PAGE URL #
# Optional, but If not set current server name will be used, e.g. http://www.example.com #
Expand Down Expand Up @@ -154,4 +168,4 @@ WP_MAX_MEMORY_LIMIT=512M
#--------------------------------------------------------------------------------------------------#
# MISCELLANEOUS #
#--------------------------------------------------------------------------------------------------#
WP_DEFAULT_THEME=twentytwentyone
WP_DEFAULT_THEME=twentytwentyone
17 changes: 14 additions & 3 deletions .env-core/templates/wordpress/docker-compose.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,22 @@ services:
- PMA_PORT=${PMA_PORT}
- PMA_USER=${PMA_USER}
- PMA_PASSWORD=${PMA_PASSWORD}
restart: always
volumes:
# Configs
- ./../wp-docker/phpmyadmin.ini:/usr/local/etc/php/conf.d/phpmyadmin.ini

#######################################
# Mailhog
#######################################
{DOMAIN_NAME}-mail:
image: mailhog/mailhog
environment:
- VIRTUAL_PORT=8025
- VIRTUAL_HOST=${SMTP_VIRTUAL_HOST}
restart: always

networks:
default:
name: dockerwp
external: true

volumes:
{DOMAIN_NAME}_db_data:
24 changes: 0 additions & 24 deletions .env-core/templates/wordpress/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,30 +56,6 @@ services:
# Set max_allowed_packet to 256M (or any other value)
command: ['--max_allowed_packet=32505856']

#######################################
# phpMyAdmin
#######################################
{DOMAIN_NAME}-phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: {DOMAIN_NAME}-phpmyadmin
depends_on:
- {DOMAIN_NAME}-mysql
links:
- {DOMAIN_NAME}-mysql
environment:
- VIRTUAL_PORT=80
- VIRTUAL_HOST=${PMA_VIRTUAL_HOST}
- PMA_ABSOLUTE_URI=${PMA_ABSOLUTE_URI}
- PMA_ARBITRARY=${PMA_ARBITRARY}
- PMA_HOST=${PMA_HOST}
- PMA_PORT=${PMA_PORT}
- PMA_USER=${PMA_USER}
- PMA_PASSWORD=${PMA_PASSWORD}
restart: always
volumes:
# Configs
- ./../wp-docker/phpmyadmin.ini:/usr/local/etc/php/conf.d/phpmyadmin.ini

networks:
default:
name: dockerwp
Expand Down

0 comments on commit f821296

Please sign in to comment.