-
-
Notifications
You must be signed in to change notification settings - Fork 304
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
34 lines (31 loc) · 715 Bytes
/
docker-compose.yaml
File metadata and controls
34 lines (31 loc) · 715 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
version: '3.9'
services:
db:
image: postgres:15
container_name: crewai_db
env_file:
- .env
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- db-data:/var/lib/postgresql/data
ports:
- "5432:5432"
# The Streamlit app
web:
build: .
container_name: crewai_studio
depends_on:
- db
env_file:
- .env
# environment:
# DB_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}
# - DB_URL=postgresql://crewai_user:secret@db:5432/crewai
# - DB_URL=${DB_URL}
ports:
- "8501:8501"
volumes:
db-data: