Skip to content

Instantly share code, notes, and snippets.

@usmanity
Created November 26, 2017 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save usmanity/87091784d5768157b72b450278d7678b to your computer and use it in GitHub Desktop.
Save usmanity/87091784d5768157b72b450278d7678b to your computer and use it in GitHub Desktop.
Example of a docker compose file
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