Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,16 @@ mkdir -p code/data/db
mkdir -p code/log
```
* 2 Put your source file in the *code* directory:
- see https://github.com/pixelhumain/pixelhumain/blob/master/README.md
- See https://github.com/pixelhumain/pixelhumain/blob/master/README.md
- Edit the file /ph/protected/config/dbconfig.php, this line:
```
'server' => 'mongodb://127.0.0.1:27017/'
```
to be:
```
'server' => 'mongodb://mongo:27017/'
```
Therefore it will be able to connect to the Docker image called mongo
- use the docker image provided below
- Your VCS / IDE / ...
* 3 Start the containers using:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '2'
services:
mongo:
image: mongo
image: mongo:3.4
volumes:
- ./code/data/db:/data/db
ports:
Expand Down