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

Added MongoDB Container , Minor Documentation fixes #12

Merged
merged 2 commits into from
Apr 26, 2020
Merged
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
3 changes: 3 additions & 0 deletions .env.public
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ MYSQL_PASSWORD=password
SQL_DATABASE=esimcloud_db
SQL_USER=user
SQL_PASSWORD=password

MONGO_INITDB_ROOT_USERNAME=user
MONGO_INITDB_ROOT_PASSWORD=password
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ mysql_data/
venv
*.sqlite3
.env.prod
mongo_data/
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ EDA Tool and Arduino on Cloud

* Run Development environment

```docker-compose -f docker-compose.dev.yml up```
```docker-compose -f docker-compose.dev.yml up django```

##### For Frontend Containers and backend containers
( Please note these containers are only for dev environment, in production compiled files will be served by nginx)
* To run eda-fronted along with all backend containers

``` docker-compose -f docker-compose.dev.yml run eda-frontend ```
``` docker-compose -f docker-compose.dev.yml up eda-frontend ```

* To run eda-fronted along with all backend containers

Expand Down
19 changes: 18 additions & 1 deletion docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ services:
- celery
- redis
- db
- mongodb

arduino-frontend:
build: ./ArduinoFrontend/
command: npm start "--host 0.0.0.0"
Expand All @@ -31,6 +33,8 @@ services:
- celery
- redis
- db
- mongodb


django:
build: ./esim-cloud-backend/
Expand All @@ -46,6 +50,8 @@ services:
- redis
- db
- celery
- mongodb

env_file:
- .env.public

Expand All @@ -70,8 +76,19 @@ services:
depends_on:
- redis
- db
- mongodb


mongodb:
image: mongo:latest
container_name: "mongodb"
environment:
- MONGO_DATA_DIR=/usr/data/db/
- MONGO_LOG_DIR=/dev/null
volumes:
- ./mongo_data:/usr/data/db
ports:
- 27017:27017
command: mongod

redis:
image: "redis:alpine"
Expand Down