Thanks to visit codestin.com
Credit goes to github.com

Skip to content
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
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
MONGO_URL=mongodb://mongo:27017/reaction
MONGO_URL=mongodb://mongo.reaction.localhost:27017/reaction
ROOT_URL=http://localhost:3000
STRIPE_API_KEY=YOUR_PRIVATE_STRIPE_API_KEY
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Run:

```sh
dc up -d mongo
docker run --env-file ./.env -p 3000:3000 --network streams.reaction.localhost -it test-api:latest
docker run --env-file ./.env -p 3000:3000 --network reaction.localhost -it test-api:latest
```

Use an external GraphQL client to test http://localhost:3000/graphql. GraphQL Playground isn't served on GET requests because it's in production mode.
Expand Down
15 changes: 4 additions & 11 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,9 @@
version: '3.4'

networks:
api:
external:
name: api.reaction.localhost
auth:
external:
name: auth.reaction.localhost
streams:
reaction:
external:
name: streams.reaction.localhost
name: reaction.localhost

services:
api:
Expand All @@ -26,8 +20,7 @@ services:
- ./.env
networks:
default:
api:
auth:
reaction:
ports:
- "3000:3000"

Expand All @@ -36,7 +29,7 @@ services:
command: mongod --oplogSize 128 --replSet rs0 --storageEngine=wiredTiger
networks:
default:
streams:
reaction:
ports:
- "27017:27017"
volumes:
Expand Down