Skip to content

Instantly share code, notes, and snippets.

@Bertrand
Created October 10, 2018 12:06
Show Gist options
  • Save Bertrand/ef3166e0e1056549735969990ac8b332 to your computer and use it in GitHub Desktop.
Save Bertrand/ef3166e0e1056549735969990ac8b332 to your computer and use it in GitHub Desktop.
version: '3'
services:
mongo:
image: mongo:latest
volumes:
- .tockmongo:/data/db
ports:
- "27017:27017"
command: --smallfiles --bind_ip_all --port 27017 --replSet "tock"
mongo2:
image: mongo:latest
depends_on:
- mongo
volumes:
- .tockmongo2:/data/db
ports:
- "27018:27018"
command: --smallfiles --bind_ip_all --port 27018 --replSet "tock"
mongo3:
image: mongo:latest
depends_on:
- mongo
- mongo2
volumes:
- .tockmongo3:/data/db
ports:
- "27019:27019"
command: --smallfiles --bind_ip_all --port 27019 --replSet "tock"
mongo-setup:
container_name: "mongo-setup"
image: mongo:latest
depends_on:
- "mongo"
- "mongo2"
- "mongo3"
links:
- mongo:mongo
- mongo2:mongo2
- mongo3:mongo3
volumes:
- ./scripts:/scripts
environment:
- MONGO1=mongo
- MONGO2=mongo2
- MONGO3=mongo3
- RS=tock
entrypoint: [ "/scripts/setup.sh" ]
build_worker:
image: tock/build_worker:$TAG
depends_on:
- mongo
- mongo2
- mongo3
environment:
- tock_mongo_url=mongodb://mongo:27017,mongo2:27018,mongo3:27019/?replicaSet=tock
- tock_env=prod
duckling:
image: tock/duckling:$TAG
environment:
- tock_env=prod
expose:
- "8080"
kotlin_compiler:
image: tock/kotlin_compiler:$TAG
environment:
- tock_env=prod
- tock_kotlin_compiler_classpath=/maven
expose:
- "8080"
admin_web:
image: tock/bot_admin:$TAG
depends_on:
- mongo
- mongo2
- mongo3
- duckling
- kotlin_compiler
environment:
- tock_mongo_url=mongodb://mongo:27017,mongo2:27018,mongo3:27019/?replicaSet=tock
- nlp_duckling_url=http://duckling:8080
- tock_env=prod
- tock_bot_admin_rest_default_base_url=http://host.docker.internal:8080
- tock_bot_compiler_service_url=http://kotlin_compiler:8080
ports:
- "80:8080"
nlp_api:
image: tock/nlp_api:$TAG
depends_on:
- mongo
- mongo2
- mongo3
- duckling
environment:
- tock_mongo_url=mongodb://mongo:27017,mongo2:27018,mongo3:27019/?replicaSet=tock
- nlp_duckling_url=http://duckling:8080
- tock_env=prod
- tock_web_use_default_cors_handler=true
- tock_web_use_default_cors_handler_with_credentials=false
- tock_web_use_default_cors_handler_url=*
ports:
- "8888:8080"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment