Skip to content

Commit

Permalink
adding example of docker-compose.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
xe-nvdk committed Mar 15, 2024
1 parent 5acf1d7 commit d007825
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
version: "3.8"
services:
wordpress:
wordpress:
image: wordpress:latest
container_name: wordpress_frontend
restart: always
ports:
- 80:80
depends_on:
- mysql
environment:
- WORDPRESS_DB_HOST=mysql
- WORDPRESS_DB_USER=mysql
- WORDPRESS_DB_PASSWORD=mysql
- WORDPRESS_DB_NAME=wordpress
- WORDPRESS_TABLE_PREFIX=ezcompose_
volumes:
- ./mysql:/var/www/html
mysql:
image: mysql:latest
container_name: mysql
restart: always
ports:
- 3306:3306
environment:
- MYSQL_DATABASE=wordpress
- MYSQL_USER=mysql
- MYSQL_PASSWORD=mysql
- MYSQL_ROOT_PASSWORD=mysql
volumes:
- .:/var/lib/mysql

0 comments on commit d007825

Please sign in to comment.