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
27 changes: 27 additions & 0 deletions day3/prac2/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1 +1,28 @@
# 코드를 추가해주세요
name: compose-test
services:
webapp:
image: python:3.13-slim
container_name: flask-app
ports:
- "8080:5000"
volumes:
- ./app:/app
working_dir: /app
command: sh -c "pip install --no-cache-dir flask redis && python app.py"
depends_on:
redis:
condition: service_healthy

redis:
image: redis:7.0
container_name: redis-db
ports:
- "6379:6379"
volumes:
- ./data:/data
healthcheck:
test: [ 'CMD', 'redis-cli', 'ping' ]
interval: 5s
timeout: 3s
retries: 3