Complete backend verification: fix syntax errors, create __init__.py files, add setup_db.py, update docker-compose for two PostgreSQL containers
This commit is contained in:
@@ -4,15 +4,15 @@ services:
|
||||
postgres:
|
||||
image: postgres:14-alpine
|
||||
environment:
|
||||
POSTGRES_DB: cockatrice
|
||||
POSTGRES_USER: cockatrice_user
|
||||
POSTGRES_PASSWORD: cockatrice_password
|
||||
POSTGRES_DB: mtgonline
|
||||
POSTGRES_USER: mtgonline_user
|
||||
POSTGRES_PASSWORD: mtgonline_password
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U cockatrice_user"]
|
||||
test: ["CMD-SHELL", "pg_isready -U mtgonline_user"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
Reference in New Issue
Block a user