From 13c1eac9b749eb1e7fa8bf8554aa037e67e3f5df Mon Sep 17 00:00:00 2001 From: Andrew Simonson Date: Sun, 13 Oct 2024 17:41:54 -0400 Subject: [PATCH] composing --- .gitignore | 3 ++- Dockerfile | 2 +- docker-compose.yml | 16 ++++++++++++++++ 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 docker-compose.yml diff --git a/.gitignore b/.gitignore index cbcce01..bce2a15 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ __pycache__ notes.txt react_OLD -envs.py \ No newline at end of file +envs.py +.env \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 7ffd6ea..f0ec298 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,4 +11,4 @@ WORKDIR /app/src RUN apt-get -yq update && \ pip install --no-cache-dir -r requirements.txt -CMD [ "gunicorn", "--bind", "0.0.0.0:8080", "app:app"] \ No newline at end of file +CMD [ "gunicorn", "--bind", "0.0.0.0:8080", "app:app"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..b6f5ebb --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,16 @@ +version: '3.8' +services: + portfolio: + image: 'asimonson1125/portfolio' + build: + context: ./ + dockerfile: Dockerfile + restart: 'no' + volumes: + - ${READ_VOLUME:-/dev/null}:/mnt/readonly:ro # Read-only mount for sharing from host to public + # ports: + # - 8080 +networks: + default: + external: true + name: proxy