Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Novitsh/devilbox
Browse files Browse the repository at this point in the history
  • Loading branch information
Novitsh committed Jul 13, 2017
2 parents aeb4f8a + 1b143eb commit ba39642
Show file tree
Hide file tree
Showing 9 changed files with 276 additions and 72 deletions.
5 changes: 5 additions & 0 deletions .tests/.lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,11 @@ devilbox_pull() {


devilbox_start() {
# Make sure everything is stopped and defaulted
sudo service docker restart || true
sleep 5
devilbox_stop

# Make sure to start until success
ret=1
while [ "${ret}" != "0" ]; do
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ The devilbox has everything setup for you. The only thing you will have to insta
#### Features

* **Mass virtual host**
* **Custom domains** (`*.loc`, `*.local`, `*.dev`, ...)
* **Custom domains** (`*.loc`, `*.local`, `*.dev`, `*.sub.loc`, ...)
* **Auto-DNS** (Internal Bind server running)
* **Email catch-all** (Internal postfix with catch-all)
* **Log files** (available on host computer)
Expand Down
86 changes: 81 additions & 5 deletions docs/Configure.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,28 @@ If set to `1`, it will show all executed commands during docker startup.

| `.env` file variable name | Default | Note |
|---------------------------|---------|------|
| DEVILBOX_PATH | `.` | Relative or absolute path allowed |
| DEVILBOX_PATH | `.` | Relative or absolute path allowed.<br/><strong>Note:</strong> Container need to be re-created after changing this value. |

This is the base path that will be prepended to all mount paths specified in `.env`.
You will usually not need to change this value..

**IMPORTANT:** When changing this path, it will affect the paths of all other mounted DATA directories. You must therefore also remove any stopped container so that they will be re-created with new different mount points during the next run. In order to accomplish this obey the following precedure:

```shell
# Stop the container
$ docker-compose stop

# Remove the stopped container (IMPORTANT!)
# After the removal it will be re-created during next run
$ docker-compose rm -f

# Edit any path variables
$ vim .env

# Start your stack
$ docker-compose up -d
```

#### 2.3 Host computer listening address

| `.env` file variable name | Default | Note |
Expand Down Expand Up @@ -213,10 +230,24 @@ The above examples should make it clear enough.

| `.env` file variable name | Default | Note |
|---------------------------|---------|------|
| HOST_PATH_HTTPD_DATADIR | `./data/www` | Can be absolute or relative path. A relative path starts inside the devilbox git directory. |
| HOST_PATH_HTTPD_DATADIR | `./data/www` | Can be absolute or relative path. A relative path starts inside the devilbox git directory.<br/><strong>Note:</strong> Container need to be re-created after changing this value. |

This is the file system path on your host computer which will hold the Project Folders.

**IMPORTANT:** When changing this path, you must re-create any affected Docker container explicitly. This can be accomplished by doing the following:

```shell
# Stop the container
$ docker-compose stop

# Remove the stopped container (IMPORTANT!)
# After the removal it will be re-created during next run
$ docker-compose rm -f

# Start your stack
$ docker-compose up -d
```


## 4. Container settings

Expand Down Expand Up @@ -416,7 +447,7 @@ If you also want to change the listening address (default: 127.0.0.1) to somethi

| `.env` file variable name | Default | Note |
|---------------------------|---------|------|
| HOST_PATH_MYSQL_DATADIR | `./data/mysql` | Can be absolute or relative path. A relative path starts inside the devilbox git directory. |
| HOST_PATH_MYSQL_DATADIR | `./data/mysql` | Can be absolute or relative path. A relative path starts inside the devilbox git directory.<br/><strong>Note:</strong> Container need to be re-created after changing this value. |

This is the file system path on your host computer which will hold the MySQL data.

Expand All @@ -439,6 +470,21 @@ drwxrwxr-x 6 48 48 4096 Jun 21 08:47 percona-5.6/
drwxrwxr-x 6 48 48 4096 Jun 21 08:47 percona-5.7/
```

**IMPORTANT:** When changing this path, you must re-create any affected Docker container explicitly. This can be accomplished by doing the following:

```shell
# Stop the container
$ docker-compose stop

# Remove the stopped container (IMPORTANT!)
# After the removal it will be re-created during next run
$ docker-compose rm -f

# Start your stack
$ docker-compose up -d
```


##### 4.4.6 my.cnf

`my.cnf` settings can be configured for each MySQL/MariaDB version separately. Container-based configuration is done inside the `./cfg/` directory.
Expand Down Expand Up @@ -520,7 +566,7 @@ If you also want to change the listening address (default: 127.0.0.1) to somethi

| `.env` file variable name | Default | Note |
|---------------------------|---------|------|
| HOST_PATH_PGSQL_DATADIR | `./data/pgsql` | Can be absolute or relative path. A relative path starts inside the devilbox git directory. |
| HOST_PATH_PGSQL_DATADIR | `./data/pgsql` | Can be absolute or relative path. A relative path starts inside the devilbox git directory.<br/><strong>Note:</strong> Container need to be re-created after changing this value. |

This is the file system path on your host computer which will hold the PostgreSQL data.

Expand All @@ -538,6 +584,21 @@ drwxrwxr-x 6 48 48 4096 Jun 21 08:47 9.5/
drwxrwxr-x 6 48 48 4096 Jun 21 08:47 9.6/
```

**IMPORTANT:** When changing this path, you must re-create any affected Docker container explicitly. This can be accomplished by doing the following:

```shell
# Stop the container
$ docker-compose stop

# Remove the stopped container (IMPORTANT!)
# After the removal it will be re-created during next run
$ docker-compose rm -f

# Start your stack
$ docker-compose up -d
```


#### 4.6 Redis

##### 4.6.1 Select Redis version
Expand Down Expand Up @@ -611,7 +672,7 @@ If you also want to change the listening address (default: 127.0.0.1) to somethi

| `.env` file variable name | Default | Note |
|---------------------------|---------|------|
| HOST_PATH_MONGO_DATADIR | `./data/mongo` | Can be absolute or relative path. A relative path starts inside the devilbox git directory. |
| HOST_PATH_MONGO_DATADIR | `./data/mongo` | Can be absolute or relative path. A relative path starts inside the devilbox git directory.<br/><strong>Note:</strong> Container need to be re-created after changing this value. |

This is the file system path on your host computer which will hold the MongoDB data.

Expand All @@ -628,6 +689,21 @@ drwxrwxr-x 6 48 48 4096 Jun 21 08:47 3.4/
drwxrwxr-x 6 48 48 4096 Jun 21 08:47 3.5/
```

**IMPORTANT:** When changing this path, you must re-create any affected Docker container explicitly. This can be accomplished by doing the following:

```shell
# Stop the container
$ docker-compose stop

# Remove the stopped container (IMPORTANT!)
# After the removal it will be re-created during next run
$ docker-compose rm -f

# Start your stack
$ docker-compose up -d
```


#### 4.9 Bind

##### 4.9.1 Upstream resolver
Expand Down
Loading

0 comments on commit ba39642

Please sign in to comment.