도커라이징
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user