Skip to content

Commit

Permalink
Merge pull request #14 from sitnik/compose-update
Browse files Browse the repository at this point in the history
Compose update
  • Loading branch information
tmatvienko authored Jun 1, 2017
2 parents 7105908 + 261c5aa commit 5103110
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 10 deletions.
21 changes: 15 additions & 6 deletions rdbms-image/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ services:
image: wurstmeister/zookeeper
ports:
- "2181:2181"

kafka:
image: devicehive/devicehive-kafka
ports:
Expand All @@ -21,25 +22,28 @@ services:
image: postgres:9.4
ports:
- "5432:5432"

volumes:
- devicehive-db:/var/lib/postgresql/data

dh_admin:
image: devicehive/admin-console:${DH_ADMIN_TAG:-latest}
ports:
ports:
- "80:8080"
depends_on:
links:
- "dh_frontend"
environment:
DH_HOST: dh_frontend
DH_PORT: 8080
DH_PORT: 8080

dh_frontend:
image: devicehive/devicehive-frontend-rdbms:${DH_TAG:-latest}
ports:
- "8080:8080"
depends_on:
links:
- "postgres"
- "kafka"
- "zookeeper"
- "dh_backend"
environment:
DH_ZK_ADDRESS: zookeeper
DH_ZK_PORT: 2181
Expand All @@ -52,10 +56,13 @@ services:
DH_POSTGRES_DB: "postgres"
DH_BACKEND_ADDRESS: dh_backend
DH_BACKEND_HAZELCAST_PORT: 5701
JWT_SECRET: ${JWT_SECRET}

dh_backend:
image: devicehive/devicehive-backend-rdbms:${DH_TAG:-latest}
depends_on:
ports:
- "5701"
links:
- "postgres"
- "kafka"
- "zookeeper"
Expand All @@ -70,3 +77,5 @@ services:
DH_POSTGRES_PASSWORD: "mysecretpassword"
DH_POSTGRES_DB: "postgres"

volumes:
devicehive-db:
12 changes: 8 additions & 4 deletions riak-image/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ services:
image: devicehive/admin-console:${DH_ADMIN_TAG:-latest}
ports:
- "80:8080"
depends_on:
- "dh_frontend"
links:
- "dh_frontend"
environment:
DH_HOST: dh_frontend
DH_PORT: 8080
Expand All @@ -56,11 +56,12 @@ services:
image: devicehive/devicehive-frontend-riak:${DH_TAG:-latest}
ports:
- "8080:8080"
depends_on:
links:
- "zookeeper"
- "kafka"
- "coordinator"
- "member"
- "dh_backend"
environment:
DH_ZK_ADDRESS: zookeeper
DH_ZK_PORT: 2181
Expand All @@ -71,10 +72,13 @@ services:
DH_RIAK_HTTP_PORT: 8098
DH_BACKEND_ADDRESS: dh_backend
DH_BACKEND_HAZELCAST_PORT: 5701
JWT_SECRET: ${JWT_SECRET}

dh_backend:
image: devicehive/devicehive-backend-riak:${DH_TAG:-latest}
depends_on:
ports:
- "5701"
links:
- "zookeeper"
- "kafka"
- "coordinator"
Expand Down

0 comments on commit 5103110

Please sign in to comment.