-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.prod.yml
61 lines (58 loc) · 1.4 KB
/
docker-compose.prod.yml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
networks:
net:
driver: bridge
services:
app:
build:
context: .
dockerfile: Dockerfile.prod
container_name: langchain-streamlit-agent-container-prod
command: streamlit run ./start.py --server.port 8501
env_file:
- .env.prod
ports:
- "8501:8501"
depends_on:
- chromadb
networks:
- net
volumes:
- logs:/app/logs
chromadb:
image: chromadb/chroma:latest
# command: uvicorn chromadb.app:app --reload --workers 1 --host 0.0.0.0 --port 8000 --log-config log_config.yml
environment:
- IS_PERSISTENT=true
- ALLOW_RESET=TRUE
- PERSIST_DIRECTORY=/chroma/chroma # this is the default path
- ANONYMIZED_TELEMETRY=${ANONYMIZED_TELEMETRY:-TRUE}
ports:
- "8000:8000"
healthcheck:
test: ["CMD", "curl", "-f", "http://chromadb:8000/api/v1/heartbeat"]
interval: 30s
timeout: 10s
retries: 5
volumes:
- chroma-data:/chroma/chroma
networks:
- net
nginx:
image: nginx:latest
container_name: nginx_prod_container
ports:
- "80:80"
- 443:443 # https port
restart: always
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
# - ./certbot/www:/var/www/certbot/:ro
networks:
- net
# certbot:
# image: certbot/certbot:latest
# volumes:
# - ./certbot/www/:/var/www/certbot/:rw
volumes:
chroma-data:
logs: