Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,31 @@
#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:
# - src:dest
# command: echo "hahahahaha"
# - chmod +rwx /usr
ports:
- 80:80
- 80:80 #to expose it outside the container

depends_on:
- backend
- backend #it waits for backend not to fail