From 0bb46466a94bb164f358afecd06170bdb8ed3b81 Mon Sep 17 00:00:00 2001 From: Jonathan Chan Date: Fri, 14 Jun 2019 23:07:53 -0700 Subject: [PATCH] Create README.md --- README.md | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..2c3363f --- /dev/null +++ b/README.md @@ -0,0 +1,39 @@ +# Template + +```yaml +version: "3" + +services: + example: + image: author/example:tag + container_name: example + restart: always + environment: + - ENV_VAR=value + ports: + - 8000:80 + volumes: + - /unnamed/volume/will/be/created + - myvolume:/var/www/html + - /srv/data/host/location:/srv/data + networks: + - mynetwork + depends_on: + - db + db: + image: postgres + container_name: example-db + restart: always + expose: + - 5432 + volumes: + - example-db:/var/lib/postgresql/9.3./main + +networks: + mynetwork: + +volumes: + myvolume: + example-db: + +```