Skip to content
Open
Show file tree
Hide file tree
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
Binary file added day3/prac2/data/dump.rdb
Binary file not shown.
31 changes: 30 additions & 1 deletion day3/prac2/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1 +1,30 @@
# 코드를 추가해주세요
services:
redis:
image: redis:8-alpine
container_name: redis
ports:
- '6379:6379'
volumes:
- ./data:/data
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 5s
timeout: 3s
retries: 3
start_period: 5s

app:
image: python:3.13-slim
container_name: flask-app
working_dir: /app
command: sh -c "pip install --no-cache-dir flask redis && python app.py"
ports:
- '8080:5000'
volumes:
- ./app:/app
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
depends_on:
redis:
condition: service_healthy