Created
November 26, 2017 16:28
-
-
Save usmanity/87091784d5768157b72b450278d7678b to your computer and use it in GitHub Desktop.
Example of a docker compose file
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: usmanity/friendlyhello:part2 | |
deploy: | |
replicas: 2 | |
resources: | |
limits: | |
cpus: "0.1" | |
memory: 50M | |
restart_policy: | |
condition: on-failure | |
ports: | |
- "80:80" | |
networks: | |
- webnet | |
networks: | |
webnet: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment