Skip to content

Commit 147040e

Browse files
committed
Update readme
1 parent 036e893 commit 147040e

File tree

4 files changed

+82
-113
lines changed

4 files changed

+82
-113
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
- Headless WordPress, using Decoupled Architecture in Next.js
99
- Backend in WordPress.
10-
- Front end in React
10+
- Front end in React.
1111

1212
## Setup
1313

backend/docker-compose.yml-e

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
version: '3.3'
2+
3+
services:
4+
composer:
5+
image: composer
6+
command: update
7+
volumes:
8+
- ./wordpress:/app
9+
10+
mysql:
11+
image: mysql:8.0
12+
volumes:
13+
- mysql_data:/var/lib/mysql
14+
restart: always
15+
environment:
16+
MYSQL_ROOT_PASSWORD: root
17+
MYSQL_DATABASE: wordpress
18+
MYSQL_USER: wordpress
19+
MYSQL_PASSWORD: wordpress
20+
volumes:
21+
- ./mysql:/var/lib/mysql
22+
23+
phpmyadmin:
24+
image: phpmyadmin/phpmyadmin
25+
depends_on:
26+
- mysql
27+
environment:
28+
PMA_HOST: mysql
29+
PMA_PORT: 3306
30+
PMA_ARBITRARY: 1
31+
restart: always
32+
ports:
33+
- 8183:80
34+
35+
wordpress:
36+
depends_on:
37+
- mysql
38+
- composer
39+
image: wordpress:latest
40+
ports:
41+
- "8020:80"
42+
restart: always
43+
environment:
44+
WORDPRESS_DB_HOST: mysql:3306
45+
WORDPRESS_DB_USER: wordpress
46+
WORDPRESS_DB_PASSWORD: wordpress
47+
WORDPRESS_DB_NAME: wordpress
48+
volumes:
49+
- ./wordpress:/var/www/html
50+
51+
volumes:
52+
mysql_data: {}

backend/wordpress/.htaccess

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,5 @@
22
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are
33
# dynamically generated, and should only be modified via WordPress filters.
44
# Any changes to the directives between these markers will be overwritten.
5-
<IfModule mod_rewrite.c>
6-
RewriteEngine On
7-
RewriteBase /
8-
RewriteRule ^index\.php$ - [L]
9-
RewriteCond %{REQUEST_FILENAME} !-f
10-
RewriteCond %{REQUEST_FILENAME} !-d
11-
RewriteRule . /index.php [L]
12-
</IfModule>
135

146
# END WordPress

backend/wordpress/composer.lock

Lines changed: 29 additions & 104 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)