Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
noc2spam committed Jul 21, 2023
0 parents commit 9661b45
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
WORDPRESS_DB_HOST=mysql
WORDPRESS_DB_USER=wordpress
WORDPRESS_DB_PASSWORD=somesupersecretpassword
WORDPRESS_ROOT_PASSWORD=evenmoresecretpassword
WORDPRESS_DB_NAME=wordpress
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.env
mysql
wordpress
38 changes: 38 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
services:
mysql:
image: mariadb:latest
command: '--default-authentication-plugin=mysql_native_password'
volumes:
- ./mysql:/var/lib/mysql
restart: unless-stopped
env_file:
- .env
environment:
- MYSQL_ROOT_PASSWORD=${WORDPRESS_ROOT_PASSWORD}
- MYSQL_DATABASE=${WORDPRESS_DB_NAME}
- MYSQL_USER=${WORDPRESS_DB_USER}
- MYSQL_PASSWORD=${WORDPRESS_DB_PASSWORD}
wordpress:
image: wordpress:latest
env_file:
- .env
ports:
- 2023:80
restart: unless-stopped
volumes:
- ./wordpress:/var/www/html
environment:
- WORDPRESS_DB_HOST=${WORDPRESS_DB_HOST}
- WORDPRESS_DB_USER=${WORDPRESS_DB_USER}
- WORDPRESS_DB_PASSWORD=${WORDPRESS_DB_PASSWORD}
- WORDPRESS_DB_NAME=${WORDPRESS_DB_NAME}
phpmyadmin:
image: phpmyadmin/phpmyadmin
restart: unless-stopped
ports:
- 2024:80
environment:
- PMA_HOST=${WORDPRESS_DB_HOST}
- PMA_ARBITRARY=0


0 comments on commit 9661b45

Please sign in to comment.