Skip to content

Instantly share code, notes, and snippets.

@pacroy
Created March 30, 2018 17:12
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 pacroy/8eb9c88f2477c9e3f6e6734f22fa2521 to your computer and use it in GitHub Desktop.
Save pacroy/8eb9c88f2477c9e3f6e6734f22fa2521 to your computer and use it in GitHub Desktop.
version: '3.1' # if no version is specificed then v1 is assumed. Recommend v2 minimum
services: # containers. same as docker run
servicename: # a friendly name. this is also DNS name inside network
image: # Optional if you use build:
command: # Optional, replace the default CMD specified by the image
environment: # Optional, same as -e in docker run
volumes: # Optional, same as -v in docker run
servicename2:
volumes: # Optional, same as docker volume create
networks: # Optional, same as docker network create
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment