Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hgq287/dt-wordpress-docker
How To Build Wordpress Site With Docker
https://github.com/hgq287/dt-wordpress-docker
docker docker-compose mysql nginx wordpress
Last synced: about 1 month ago
JSON representation
How To Build Wordpress Site With Docker
- Host: GitHub
- URL: https://github.com/hgq287/dt-wordpress-docker
- Owner: hgq287
- Created: 2020-09-21T07:55:51.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-05-30T07:49:00.000Z (over 3 years ago)
- Last Synced: 2024-11-12T03:35:32.652Z (about 2 months ago)
- Topics: docker, docker-compose, mysql, nginx, wordpress
- Language: CSS
- Homepage: https://htq287.com/how-to-build-wordpress-site-with-docker/
- Size: 4.91 MB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# example.com (Wordpress With Docker)
## Introduction
- Built in Wordpress 5.5.1
## Usages
Deploying with Docker
- Build images
```sh
$ docker build -t example_com/wordpress:5.5.1-fpm-alpine .
```
- Clean up the old containers
```sh
$ docker-compose down
```
- Remove all the old volumes
```
$ docker volume rm $(docker volume ls -q)
```
- Load the new containers
```sh
$ docker-compose up -d
```
- Import database
```
$ source import_db.sh
# make sure dbpath defined in file .env
```
Backup data
```
$ source export_db.sh
# the backup database saved in ./src/data
```
# License
The MIT License (MIT)Copyright (C) 2020, Hung Q. Truong. https://htq287.com. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.