diff --git a/.env b/.env index d66c562e..bde967ca 100644 --- a/.env +++ b/.env @@ -3,5 +3,5 @@ SITE_URL=test.suthanbala.com # Database for MYSQL DB_USER=root -MYSQL_DATABASE=wordpress -MYSQL_ROOT_PASSWORD=example +MYSQL_DATABASE=suthanbala +MYSQL_ROOT_PASSWORD=mydbP@$$word diff --git a/README.md b/README.md index 8c322f32..35e14293 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ ## Installing / Getting started -You may start by cloning the directory to your machine. Naming the project as the domain name is a good practice. +You may start by cloning the directory to your machine. Naming the project as the domain name is a good practice. If you are working on an existing site, then copy the themes in to `src/themes/`, plugins into `src/plugins/` and the uploads into `src/uploads`. Also, if you have the Database SQL file, then place it inside the `src/initial-db` directory. ```shell git clone https://github.com/suthanbala/wordpress-docker-gulp.git dev.yourdomain.com @@ -102,7 +102,7 @@ During this early phase in the tool, we do not have a sufficient way to do a dat ## Versioning -We can maybe use [SemVer](http://semver.org/) for versioning. For the versions available, see the [link to tags on this repository](/tags). +We are using [SemVer](http://semver.org/) for versioning. ## Build - To fully export the project, run the `export_all.sh` bash script located in the `scripts` folder. This will export all the source code and the SQL file into the `build` directory. diff --git a/docker-compose.yml b/docker-compose.yml index 0e37f3c0..e6517fac 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,6 +9,7 @@ services: volumes: - ./src/themes/:/var/www/html/wp-content/themes - ./src/plugins/:/var/www/html/wp-content/plugins + - ./src/uploads/:/var/www/html/wp-content/uploads - ./build:/build - "node-modules:/var/node_modules" ports: @@ -20,6 +21,7 @@ services: - WORDPRESS_DB_USER=${DB_USER} - WORDPRESS_DB_PASSWORD=${MYSQL_ROOT_PASSWORD} - WORDPRESS_DB_NAME=${MYSQL_DATABASE} + - SITE_URL=${SITE_URL} command: /bin/bash -c "apache2-foreground & gulp" mysql: container_name: "wp-db" @@ -27,6 +29,7 @@ services: restart: unless-stopped volumes: - ./build/sql:/build/sql + - ./src/initial-db:/docker-entrypoint-initdb.d env_file: - .env phpmyadmin: diff --git a/package.json b/package.json index 5df2acba..b1bdb50d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "docker-wordpress-gulp", - "version": "0.2.0", + "version": "0.3.0", "description": "Docker image for Wordpress using Gulp and BrowserSync.", "main": "index.php", "scripts": {