Skip to content
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.

Commit

Permalink
create env for docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
icebob committed Nov 14, 2017
1 parent 35800c9 commit fab7403
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 18 deletions.
1 change: 1 addition & 0 deletions .dockerignore
@@ -1,3 +1,4 @@
docker-compose.env
docker-compose.yml
Dockerfile
node_modules
Expand Down
6 changes: 6 additions & 0 deletions docker-compose.env
@@ -0,0 +1,6 @@
LOGGER=true
LOGLEVEL=info
TRANSPORTER=nats://nats:4222
CACHER=memory
MONGO_URI=mongodb://mongo/conduit
SERVICEDIR=services
24 changes: 6 additions & 18 deletions docker-compose.yml
Expand Up @@ -6,12 +6,10 @@ services:
build:
context: .
image: conduit
env_file: env
environment:
SERVICEDIR: services
SERVICES: api
PORT: 3000
TRANSPORTER: nats://nats:4222
MONGO_URI: mongodb://mongo
links:
- nats
depends_on:
Expand All @@ -29,11 +27,9 @@ services:
build:
context: .
image: conduit
env_file: env
environment:
SERVICEDIR: services
SERVICES: articles
TRANSPORTER: nats://nats:4222
MONGO_URI: mongodb://mongo
links:
- nats
- mongo
Expand All @@ -47,11 +43,9 @@ services:
build:
context: .
image: conduit
env_file: env
environment:
SERVICEDIR: services
SERVICES: comments
TRANSPORTER: nats://nats:4222
MONGO_URI: mongodb://mongo
links:
- nats
- mongo
Expand All @@ -65,11 +59,9 @@ services:
build:
context: .
image: conduit
env_file: env
environment:
SERVICEDIR: services
SERVICES: favorites
TRANSPORTER: nats://nats:4222
MONGO_URI: mongodb://mongo
links:
- nats
- mongo
Expand All @@ -83,11 +75,9 @@ services:
build:
context: .
image: conduit
env_file: env
environment:
SERVICEDIR: services
SERVICES: follows
TRANSPORTER: nats://nats:4222
MONGO_URI: mongodb://mongo
links:
- nats
- mongo
Expand All @@ -101,11 +91,9 @@ services:
build:
context: .
image: conduit
env_file: env
environment:
SERVICEDIR: services
SERVICES: users
TRANSPORTER: nats://nats:4222
MONGO_URI: mongodb://mongo
links:
- nats
- mongo
Expand Down

0 comments on commit fab7403

Please sign in to comment.