mirror of
https://github.com/tmdinosaurcenter/kiosk-guestbook.git
synced 2025-05-17 15:42:22 -06:00
Removed development Dockerfile, updated .gitignore to exclude docker-compose and added new example.docker-compose.yml
This commit is contained in:
parent
f4466b8a67
commit
9f462c4c0a
1
.gitignore
vendored
1
.gitignore
vendored
@ -185,3 +185,4 @@ cython_debug/
|
||||
.vscode/
|
||||
|
||||
.env
|
||||
docker-compose.yml
|
||||
|
@ -1,14 +0,0 @@
|
||||
FROM python:3.9-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy and install Python dependencies.
|
||||
COPY requirements.txt requirements.txt
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Copy the rest of the app code.
|
||||
COPY . .
|
||||
|
||||
EXPOSE 5000
|
||||
|
||||
CMD ["python", "app.py"]
|
15
example.docker-compose.yml
Normal file
15
example.docker-compose.yml
Normal file
@ -0,0 +1,15 @@
|
||||
version: "3.8"
|
||||
services:
|
||||
guestbook:
|
||||
image: snachodog/kiosk-guestbook:latest
|
||||
container_name: guestbook
|
||||
ports:
|
||||
- "${PORT:-8000}:8000"
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
# Mount your local directory to persist data; adjust if you prefer a named volume
|
||||
- /path/to/guestbook_data:/data
|
||||
|
||||
volumes:
|
||||
guestbook_data:
|
Loading…
x
Reference in New Issue
Block a user