Skip to content

Instantly share code, notes, and snippets.

@Kalki5
Created April 23, 2020 11:57
Show Gist options
  • Save Kalki5/6afc18437629da0bc492cbd157f03b6c to your computer and use it in GitHub Desktop.
Save Kalki5/6afc18437629da0bc492cbd157f03b6c to your computer and use it in GitHub Desktop.
Temporary
version: "3"
services:
web:
image: YOUR_DOCKER_ID/pyapp:latest
deploy:
replicas: 2
ports:
- "80:80"
networks:
- webnet
redis:
image: redis
ports:
- "6379:6379"
volumes:
- "/home/ubuntu/data:/data"
deploy:
placement:
constraints: [node.role == manager]
command: redis-server --appendonly yes
networks:
- webnet
networks:
webnet:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment