Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docker-compose file and update README.md #16

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,22 @@ Clone the project and `docker build . -t <TAG>`

## Running

### docker-compose
If you have [docker-compose](https://docs.docker.com/compose/overview/) v1.6.x or higher, you can simply clone this repo and then run the following command:

```
docker-compose up -d --build
```

You can then visit `http://localhost` on linux (Ubuntu). On Mac OSX, you can run `echo $(docker-machine ip default)` in terminal, and then visit that IP address in your browser. By default, an example admin account will be created for you. To obtain the credentials, run:

```
docker-compose logs strider | grep "Admin User"
```

Enter the credentials in your browser at the above address to get started with Strider-CD.

### Manually
Say you've created a database at MongoLab, here's how you would run it:

`docker run -e "DB_URI=mongodb://keyvan:[email protected]:41380/strider-testing" <TAG>`
Expand Down
21 changes: 21 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: '2'

services:

mongo:
build:
context: ./mongo
dockerfile: Dockerfile
command: "mongod --smallfiles"

strider:
build:
context: .
dockerfile: Dockerfile
environment:
- DB_URI=mongodb://mongo:27017
- GENERATE_ADMIN_USER=1
depends_on:
- mongo
ports:
- "80:3000"