Skip to content

Instantly share code, notes, and snippets.

@Asherslab
Created April 7, 2019 15:45
Show Gist options
  • Save Asherslab/c0ae35d96ea73b49b66e8e5a9aef3d85 to your computer and use it in GitHub Desktop.
Save Asherslab/c0ae35d96ea73b49b66e8e5a9aef3d85 to your computer and use it in GitHub Desktop.
version: '3.1'
services:
api:
image: docker.minecolonies.com/chatchainserver:latest
ports:
- 8082:80
depends_on:
- mongodb
- identitydb
- identityserverdb
networks:
- webgateway
- internal
deploy:
restart_policy:
condition: any
mode: replicated
replicas: 1
update_config:
delay: 2s
environment:
- CLIENTS_AND_GROUPS_DATABASE=mongodb://root:password@mongodb:27017/admin
- IDENTITY_SERVER_URL=http://localhost:8081
- REDIS_BACKPLANE=redis
- WAIT_HOSTS=mongodb:27017,redis:6379
- WAIT_HOSTS_TIMEOUT=240
identity:
image: docker.minecolonies.com/chatchainidentityserver:latest
ports:
- 8081:80
depends_on:
- mongodb
- identitydb
- identityserverdb
networks:
- webgateway
- internal
deploy:
restart_policy:
condition: any
mode: replicated
replicas: 1
update_config:
delay: 2s
environment:
- IDENTITY_SERVER_URL=http://localhost:8081
- IDENTITY_SERVER_DATABASE_CONNECTION=mongodb://root:password@mongodb/admin
- IDENTITY_SERVER_DATABASE=ChatChainIdentityServer
- WAIT_HOSTS=redis:6379,mongodb:27017
- WAIT_HOSTS_TIMEOUT=240
- IDENTITY_SERVER_ORIGIN=https://localhost:8081
- REDIS_STACK_EXCHANGE=redis:6379
webapp:
image: docker.minecolonies.com/chatchainwebapp:latest
ports:
- 8080:80
depends_on:
- mongodb
- identitydb
- identityserverdb
networks:
- webgateway
- internal
deploy:
restart_policy:
condition: any
mode: replicated
replicas: 1
update_config:
delay: 2s
environment:
- CLIENTS_AND_GROUPS_DATABASE=mongodb://root:password@mongodb/admin
- IDENTITY_DATABASE=mongodb://root:password@mongodb/admin
- IDENTITY_SERVER_DATABASE_CONNECTION=mongodb://root:password@mongodb/admin
- IDENTITY_SERVER_DATABASE=ChatChainIdentityServer
- WAIT_HOSTS=mongodb:27017,redis:6379
- WAIT_HOSTS_TIMEOUT=240
- REDIS_STACK_EXCHANGE=redis:6379
mongodb:
image: mongo:3.4
networks:
- internal
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=password
ports:
- 27017:27017
volumes:
- chatchain-mongodb-databases:/data/db
redis:
image: redis
ports:
- 6379:6379
networks:
- internal
volumes:
chatchain-mongodb-databases:
networks:
webgateway:
external: true
internal:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment