Skip to content

Instantly share code, notes, and snippets.

@shanesoh
Created September 8, 2019 14:05
Show Gist options
  • Save shanesoh/d26153159e00738f7ee9f3327afcd311 to your computer and use it in GitHub Desktop.
Save shanesoh/d26153159e00738f7ee9f3327afcd311 to your computer and use it in GitHub Desktop.
version: '3'
services:
redis:
image: redis
networks:
- deployml_network
modelserver:
image: localhost:5000/modelserver
build: ./modelserver
depends_on:
- redis
networks:
- deployml_network
env_file:
- app.env
environment:
- SERVER_SLEEP=0.25
- BATCH_SIZE=32
deploy:
replicas: 2
restart_policy:
condition: on-failure
webserver:
image: localhost:5000/webserver
build: ./webserver
ports:
- "80:80"
networks:
- deployml_network
depends_on:
- redis
env_file:
- app.env
environment:
- CLIENT_SLEEP=0.25
networks:
deployml_network:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment