[V0.5] Working application with all 4 screens as of yet.
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
# docker-compose.yml
|
||||
|
||||
###################
|
||||
### DEV COMPOSE ###
|
||||
###################
|
||||
services:
|
||||
# ----- Backend API (Uvicorn/FastAPI/Django etc.) -----
|
||||
api:
|
||||
@@ -11,9 +15,6 @@ services:
|
||||
- .:/app
|
||||
ports:
|
||||
- "8000:8000"
|
||||
environment:
|
||||
- DB_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/maia
|
||||
- REDIS_URL=redis://redis:6379/0
|
||||
depends_on:
|
||||
- db
|
||||
- redis
|
||||
@@ -32,9 +33,6 @@ services:
|
||||
command: celery -A core.celery_app worker --loglevel=info
|
||||
volumes:
|
||||
- .:/app
|
||||
environment:
|
||||
- DB_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/maia
|
||||
- REDIS_URL=redis://redis:6379/0
|
||||
depends_on:
|
||||
- db
|
||||
- redis
|
||||
@@ -49,11 +47,11 @@ services:
|
||||
image: postgres:15 # Use a specific version
|
||||
container_name: MAIA-DB
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data # Persist data using a named volume
|
||||
- ./db:/var/lib/postgresql/data # Persist data using a named volume
|
||||
environment:
|
||||
- POSTGRES_USER=${POSTGRES_USER}
|
||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||
- POSTGRES_DB=maia
|
||||
- POSTGRES_USER=${DB_USER}
|
||||
- POSTGRES_PASSWORD=${DB_PASSWORD}
|
||||
- POSTGRES_DB=${DB_NAME}
|
||||
env_file:
|
||||
- ./.env
|
||||
networks:
|
||||
@@ -65,16 +63,11 @@ services:
|
||||
image: redis:7 # Use a specific version
|
||||
container_name: MAIA-Redis
|
||||
volumes:
|
||||
- redis_data:/data
|
||||
- ./redis_data:/data
|
||||
networks:
|
||||
- maia_network
|
||||
restart: unless-stopped
|
||||
|
||||
# ----- Volumes Definition -----
|
||||
volumes:
|
||||
postgres_data: # Define the named volume for PostgreSQL
|
||||
redis_data: # Define the named volume for Redis
|
||||
|
||||
# ----- Network Definition -----
|
||||
networks:
|
||||
maia_network: # Define a custom bridge network
|
||||
|
||||
Reference in New Issue
Block a user