Created
April 23, 2020 11:57
-
-
Save Kalki5/6afc18437629da0bc492cbd157f03b6c to your computer and use it in GitHub Desktop.
Temporary
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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