Created
January 9, 2018 19:40
-
-
Save gfranchini/78fe8e4cf820583d75799ec00a748591 to your computer and use it in GitHub Desktop.
Template for creating docker compose files.
This file contains hidden or 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.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