Docker maintenance

This commit is contained in:
2026-04-07 20:03:11 +09:30
parent d212ebe688
commit 04e3293b30
3 changed files with 8 additions and 1 deletions
+1
View File
@@ -29,6 +29,7 @@ FROM python:3.11-slim
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apt-get update && apt-get install -y --no-install-recommends \
libpq5 \ libpq5 \
curl \ curl \
openssh-client \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# Create non-root user # Create non-root user
+4
View File
@@ -70,8 +70,12 @@ python -m scripts.seed_data
7. **Run the application**: 7. **Run the application**:
```bash ```bash
flask run flask run
# Or in debug mode
FLASK_ENV=development flask run --debug --port 5000
# Or using the WSGI file # Or using the WSGI file
python wsgi.py python wsgi.py
``` ```
The API will be available at `http://localhost:5000` The API will be available at `http://localhost:5000`
+3 -1
View File
@@ -57,7 +57,9 @@ services:
interval: 10s interval: 10s
timeout: 5s timeout: 5s
retries: 5 retries: 5
ports:
- "6379:6379"
nginx: nginx:
image: nginx:1.27-alpine image: nginx:1.27-alpine
volumes: volumes: