Skip to content
Open
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
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:
web:
image: python:3.9-slim
ports:
- "5000:5000"
volumes:
- ./app:/app
working_dir: /app
command: sh -c "pip install flask redis && python app.py"
depends_on:
redis:
condition: service_healthy

redis:
image: redis:latest
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 3
start_period: 5s
start_interval: 5s
volumes:
- redis_data:/data


volumes:
redis_data: