Skip to content

Instantly share code, notes, and snippets.

View theinfinox's full-sized avatar
☄️
<3

Govind S R theinfinox

☄️
<3
View GitHub Profile
@theinfinox
theinfinox / WordPress-Dokerfile
Created June 30, 2024 14:23 — forked from abhi-io/WordPress-Dokerfile
multiple WordPress instances with separate databases using Docker
To set up multiple WordPress instances with separate databases using Docker, you'll need to modify the Docker commands to create additional containers for WordPress and MariaDB. Here's how you can set it up for three websites:
1. Create Docker networks:
```bash
docker network create wordpress-network1
docker network create wordpress-network2
docker network create wordpress-network3
```
2. Create volumes for each WordPress instance and database: