도커라이징

This commit is contained in:
2025-02-13 16:37:45 +09:00
parent ad26488b1b
commit 0d34c20882
8 changed files with 267 additions and 95 deletions

View File

@@ -2,17 +2,26 @@ version: "3.9"
services:
api:
build: .
command: uvicorn app:app --host 0.0.0.0 --port 8000
command: uvicorn main:app --host 0.0.0.0 --port 8000
ports:
- "8000:8000"
depends_on:
- redis
networks:
- app_network
worker:
build: .
command: python worker.py
command: python3 worker.py
depends_on:
- redis
networks:
- app_network
redis:
image: redis:6
ports:
- "6379:6379"
networks:
- app_network
networks:
app_network:
driver: bridge