Spaces:
No application file

bipuldey commited on
Commit
755ce05
·
1 Parent(s): ff76900

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +35 -3
README.md CHANGED
@@ -3,8 +3,40 @@ title: README
3
  emoji: 🐠
4
  colorFrom: blue
5
  colorTo: green
6
- sdk: static
7
  pinned: false
 
8
  ---
9
-
10
- Edit this `README.md` markdown file to author your organization card.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  emoji: 🐠
4
  colorFrom: blue
5
  colorTo: green
6
+ sdk: docker
7
  pinned: false
8
+ license: bsd
9
  ---
10
+ version: "3"
11
+ # Defines which compose version to use
12
+ services:
13
+ # Services line define which Docker images to run. In this case, it will be MySQL server and WordPress image.
14
+ db:
15
+ image: mysql:5.7
16
+ # image: mysql:5.7 indicates the MySQL database container image from Docker Hub used in this installation.
17
+ restart: always
18
+ environment:
19
+ MYSQL_ROOT_PASSWORD: MyR00tMySQLPa$$5w0rD
20
+ MYSQL_DATABASE: MyWordPressDatabaseName
21
+ MYSQL_USER: MyWordPressUser
22
+ MYSQL_PASSWORD: Pa$$5w0rD
23
+ # Previous four lines define the main variables needed for the MySQL container to work: database, database username, database user password, and the MySQL root password.
24
+ wordpress:
25
+ depends_on:
26
+ - db
27
+ image: wordpress:latest
28
+ restart: always
29
+ # Restart line controls the restart mode, meaning if the container stops running for any reason, it will restart the process immediately.
30
+ ports:
31
+ - "8000:80"
32
+ # The previous line defines the port that the WordPress container will use. After successful installation, the full path will look like this: http://localhost:8000
33
+ environment:
34
+ WORDPRESS_DB_HOST: db:3306
35
+ WORDPRESS_DB_USER: MyWordPressUser
36
+ WORDPRESS_DB_PASSWORD: Pa$$5w0rD
37
+ WORDPRESS_DB_NAME: MyWordPressDatabaseName
38
+ # Similar to MySQL image variables, the last four lines define the main variables needed for the WordPress container to work properly with the MySQL container.
39
+ volumes:
40
+ ["./:/var/www/html"]
41
+ volumes:
42
+ mysql: {}