mgbam commited on
Commit
e56fb0d
·
verified ·
1 Parent(s): 822500d

Update docker-compose.yml

Browse files
Files changed (1) hide show
  1. docker-compose.yml +28 -20
docker-compose.yml CHANGED
@@ -1,23 +1,31 @@
1
- version: "3.8"
 
2
  services:
3
- web:
4
  build: .
5
- volumes:
6
- - .:/app
7
  ports:
8
- - "7860:7860"
9
- - "8001:8001"
10
- environment:
11
- - GEMINI_API_KEY=${GEMINI_API_KEY}
12
- - UMLS_API_KEY=${UMLS_API_KEY}
13
- - BIOPORTAL_API_KEY=${BIOPORTAL_API_KEY}
14
- - SECRET_KEY=${SECRET_KEY}
15
- redis:
16
- image: redis:6-alpine
17
- worker:
18
- build: .
19
- command: celery -A services.celery_app worker --loglevel=info
20
- environment:
21
- - BROKER_URL=redis://redis:6379/0
22
- depends_on:
23
- - redis
 
 
 
 
 
 
 
 
 
 
1
+ version: '3.8'
2
+
3
  services:
4
+ app:
5
  build: .
 
 
6
  ports:
7
+ - "8501:8501"
8
+ volumes:
9
+ - .:/app # Mount current directory to /app in container for live code updates
10
+ env_file:
11
+ - .env # Load environment variables from .env file
12
+ # If you were using a separate DB like Postgres:
13
+ # depends_on:
14
+ # - db
15
+ # environment:
16
+ # - DATABASE_URL=postgresql://user:password@db:5432/mydatabase
17
+
18
+ # Example for a Postgres DB (uncomment and configure if needed instead of SQLite)
19
+ # db:
20
+ # image: postgres:15
21
+ # volumes:
22
+ # - postgres_data:/var/lib/postgresql/data/
23
+ # environment:
24
+ # - POSTGRES_USER=user
25
+ # - POSTGRES_PASSWORD=password
26
+ # - POSTGRES_DB=mydatabase
27
+ # ports:
28
+ # - "5432:5432"
29
+
30
+ # volumes: # Uncomment if using Postgres
31
+ # postgres_data: