composing

This commit is contained in:
2024-10-13 17:41:54 -04:00
parent c023481303
commit 13c1eac9b7
3 changed files with 19 additions and 2 deletions

3
.gitignore vendored
View File

@@ -2,4 +2,5 @@
__pycache__
notes.txt
react_OLD
envs.py
envs.py
.env

View File

@@ -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"]
CMD [ "gunicorn", "--bind", "0.0.0.0:8080", "app:app"]

16
docker-compose.yml Normal file
View File

@@ -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