Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update v0.6 (#66) #68

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -47,7 +47,7 @@ DOCKER_WORDPRESS_LETSENCRYPT_EMAIL=your_email@domain.com
DOCKER_WORDPRESS_DB_CONTAINER_NAME=docker-wordpress-compose-project-name-db

# Database image (mariadb|mysql)
DOCKER_WORDPRESS_DB_IMAGE=mariadb
DOCKER_WORDPRESS_DB_IMAGE=mysql

# Database version
DOCKER_WORDPRESS_DB_VERSION=latest
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -21,6 +21,7 @@ following the [previous docs](./docs/v0.5.md).

Running docker on Azure servers you must mount your database in your disks partitions (example: `/mnt/data/`) so your db container can work. This is a some kind of issue regarding Hyper-V sharing drivers... not really sure why.

=======

## Versions

13 changes: 11 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -50,6 +50,8 @@ services:
WORDPRESS_DB_PASSWORD: ${DOCKER_WORDPRESS_MYSQL_PASSWORD}
WORDPRESS_TABLE_PREFIX: ${DOCKER_WORDPRESS_TABLE_PREFIX}
VIRTUAL_HOST: ${DOCKER_WORDPRESS_DOMAINS}
# VIRTUAL_PATH: ${DOCKER_WORDPRESS_VIRTUAL_PATH:-"/"}
# VIRTUAL_DEST: ${DOCKER_WORDPRESS_VIRTUAL_DEST:-"/"}
LETSENCRYPT_HOST: ${DOCKER_WORDPRESS_DOMAINS}
LETSENCRYPT_EMAIL: ${DOCKER_WORDPRESS_LETSENCRYPT_EMAIL}
# WORDPRESS_AUTH_KEY: ${DOCKER_WORDPRESS_AUTH_KEY:-null}
@@ -69,7 +71,13 @@ services:
max-file: ${DOCKER_WORDPRESS_SITE_LOG_MAX_FILE:-10}

wpcli:
image: tatemz/wp-cli
image: wordpress:cli
environment:
WORDPRESS_DB_HOST: ${DOCKER_WORDPRESS_DB_HOST:-docker-wordpress-new-db}:3306
WORDPRESS_DB_NAME: ${DOCKER_WORDPRESS_MYSQL_DATABASE}
WORDPRESS_DB_USER: ${DOCKER_WORDPRESS_MYSQL_USER}
WORDPRESS_DB_PASSWORD: ${DOCKER_WORDPRESS_MYSQL_PASSWORD}
WORDPRESS_TABLE_PREFIX: ${DOCKER_WORDPRESS_TABLE_PREFIX}
networks:
- docker-wordpress-db-net
volumes:
@@ -81,4 +89,5 @@ services:
networks:
docker-wordpress-proxy-network:
external: true
docker-wordpress-db-net:
docker-wordpress-db-net:

8 changes: 8 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Docker WordPres for nginx-proxy-automation

## Challenges

1. Use this setup as a subfolder site along with nginx-proxy VIRTUAL_PATH and VIRTUAL_DEST

We were able to see the site but even with WP_HOME and WP_SITEURL configured with the subpath, the dashboards link wouldn´t work accordingly.