https://github.com/felipeelia/docker-base-env
A Basic Docker Environment for WordPress Development
https://github.com/felipeelia/docker-base-env
docker docker-compose wordpress wordpress-development
Last synced: 6 months ago
JSON representation
A Basic Docker Environment for WordPress Development
- Host: GitHub
- URL: https://github.com/felipeelia/docker-base-env
- Owner: felipeelia
- License: gpl-2.0
- Created: 2020-04-26T21:19:59.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-26T21:26:45.000Z (almost 6 years ago)
- Last Synced: 2025-03-31T01:23:39.618Z (10 months ago)
- Topics: docker, docker-compose, wordpress, wordpress-development
- Language: Shell
- Homepage:
- Size: 9.77 KB
- Stars: 20
- Watchers: 1
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# How to Set Up
1. Download the repo content
2. Go to the `/docker` folder
3. Run `docker-compose up`
## Available Tools
### MailHog
Uncomment the `mailhog` section in the `docker-compose.yml`. It'll be available at `http://localhost:8025`. Make sure to keep the `docker/dev.ini` content.
### PHPMyAdmin
Uncomment the `phpmyadmin` section in the `docker-compose.yml`. It'll be available at `http://localhost:8080`.
## DB
### To import and export a DB Dump
As database content is not versioned by default, you can run `./dump-db.sh` to generate a dump of the dev DB version. To restore the existent dev DB version, you can run `./update-db.sh`. CAUTION: It will overwrite your database.
### To import from the Live Env
It is possible to automatically generate a database dump from the live/production site. You'll need to change the `update-local-from-live.sh` file and then run it.