From 0b24f48847dfc1bd2fe3a8b66f21e5d4ebfc8ac2 Mon Sep 17 00:00:00 2001 From: GiovanniCanarecci Date: Mon, 19 Aug 2019 16:21:37 +0300 Subject: [PATCH] Some comments added to docker-compose.yml --- docker-compose.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index ec499f0..0fe68fa 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,16 +1,23 @@ +#By Default Docker looks for this file + version: '3' -services: - backend: +#Docker works with tabs as python does +services: #this is a keyword + backend: #this is just a name build: ./myImage environment: - SECRET_KEY:lalalalalala ports: - 5000:5000 + #- 80:5000 + #- 443:5000 + + frontend: - image: httpd:2.4 + image: httpd:2.4 #we looked it up from hub.docker.com volumes: - ./frontend:/usr/local/apache2/htdocs/ # copy: @@ -18,7 +25,7 @@ services: # command: echo "hahahahaha" # - chmod +rwx /usr ports: - - 80:80 + - 80:80 #to expose it outside the container depends_on: - - backend \ No newline at end of file + - backend #it waits for backend not to fail \ No newline at end of file