♻️ Refactor prestart (migrations), move that to its own container (#1350)

This commit is contained in:
Sebastián Ramírez
2024-09-20 17:12:40 +02:00
committed by GitHub
parent d87b6391b5
commit 8fe66c1cc1
3 changed files with 47 additions and 4 deletions

View File

@@ -59,7 +59,7 @@ services:
restart: "no"
ports:
- "8888:8888"
- "8000:80"
- "8000:8000"
volumes:
- ./backend/:/app
build:
@@ -67,7 +67,11 @@ services:
args:
INSTALL_DEV: ${INSTALL_DEV-true}
# command: sleep infinity # Infinite loop to keep container alive doing nothing
command: /start-reload.sh
command:
- fastapi
- run
- --reload
- "app/main.py"
environment:
SMTP_HOST: "mailcatcher"
SMTP_PORT: "1025"