Skip to content

Commit

Permalink
chore: updated .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-ojha committed Jun 7, 2022
1 parent 0923635 commit 727b27b
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 4 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ node_modules
.env.development
.env.production
/db/firebase_serviceAccountKey.json
docker-compose.dev.yml
note.txt
/dist
/.vscode/settings.json
6 changes: 3 additions & 3 deletions RUN_LOCALLY.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
5. Run `yarn start` to run the client Site

## Using Docker:
1. change `docker-compose.local.yml` name with `docker-compose.dev.yml`
2. get all the required environment variable
3. Run `yarn docker:dev` to dockerize application
1. Create `.env.development` file in Project Directory
2. Get all the environment variables which are include in `.env.example`
4. Run `yarn docker:dev` to dockerize application
42 changes: 42 additions & 0 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
version: "3"

services:
client:
container_name: social-client-dev
image: social-client-dev
build:
context: ./client
dockerfile: Dockerfile
ports:
- "3000:3000"
volumes:
- ./client:/user/src/client
environment:
REACT_APP_API_BASE_URL: http://localhost:8080
depends_on:
- server
server:
container_name: social-server-dev
image: social-server-dev
restart: always
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:8080"
volumes:
- .:/user/src/server
env_file:
- .env.development
depends_on:
- mongo
mongo:
container_name: mongo
image: mongo:latest
restart: always
volumes:
- mongo:/data/db
ports:
- "2717:27017"
volumes:
mongo: {}

0 comments on commit 727b27b

Please sign in to comment.