Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chitranjan-gupta/wordpress-docker-compose
Wordpress, PHPMyadmin, Mysql using docker-compose
https://github.com/chitranjan-gupta/wordpress-docker-compose
docker docker-compose dockerfile wordpress wordpress-docker wordpress-docker-compose
Last synced: about 1 month ago
JSON representation
Wordpress, PHPMyadmin, Mysql using docker-compose
- Host: GitHub
- URL: https://github.com/chitranjan-gupta/wordpress-docker-compose
- Owner: chitranjan-gupta
- License: mit
- Created: 2023-11-25T15:49:29.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-08-20T08:00:58.000Z (4 months ago)
- Last Synced: 2024-08-21T10:09:31.290Z (4 months ago)
- Topics: docker, docker-compose, dockerfile, wordpress, wordpress-docker, wordpress-docker-compose
- Language: PHP
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Wordpress, PHPMyadmin, Mysql using docker-compose
This creates a three docker container which are connected by a custom bridge network and two volumes,
one for storing mysql data and another for storing wordpress data.## MYSQL
- username: root
- password: password## PhpMyadmin
> When running phpmyadmin under reverse proxy then it automatically works## wordpress
> Wordpress running under reverse proxy requires changing the url## Requirement
1. Change the `WORDPRESS_HOME` & `WORDPRESS_URL` with the reverse proxy url
then build## Build
1. docker-compose build## Run
1. docker-compose up -d## Stop
1. docker-compose down## List and remove the volumes used
1. docker volume ls
2. docker volume rm## List and remove the docker images
1. docker images
2. docker rmi## Executing bash shell inside the docker container
1. docker exec -it /bin/bash## List docker runnig process & stopped process
1. docker ps
2. docker ps -a## Remove the docker process attached image
1. docker rm## List Docker network
1. docker network ls### Note:
-e "s!localhost!blog.example.com!g"
-e "s!#(\s*ServerName\s+)www\.example\.com!\1blog.example.com!g"COPY ./blog.example.com.conf /etc/apache2/sites-available
RUN a2ensite blog.example.com.confCOPY ./.htaccess /usr/src/wordpress/.htaccess
Custom Permalink
/index.php/%year%/%monthnum%/%day%/%postname%/## Sources:
1. https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-docker-compose
2. https://wordpress.org/documentation/article/administration-over-ssl/#using-a-reverse-proxy
3. https://hub.docker.com/_/wordpress