-
Notifications
You must be signed in to change notification settings - Fork 869
/
docker-compose-prod.yml
39 lines (38 loc) · 1.02 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
version: "3"
services:
postgres:
image: pgvector/pgvector:pg16
healthcheck:
test: pg_isready -U $POSTGRES_USER
start_interval: 1s
start_period: 5s
interval: 5s
retries: 5
ports:
- "5433:5432"
env_file:
- .env
volumes:
- ./postgres-volume:/var/lib/postgresql/data
postgres-setup:
image: migrate/migrate
depends_on:
postgres:
condition: service_healthy
volumes:
- ./backend/migrations:/migrations
env_file:
- .env
command: ["-path", "/migrations", "-database", "postgres://$POSTGRES_USER:$POSTGRES_PASSWORD@postgres:$POSTGRES_PORT/$POSTGRES_DB?sslmode=disable", "up"]
backend:
container_name: opengpts-backend
image: docker.io/langchain/open-gpts:latest
ports:
- "8100:8000" # Backend is accessible on localhost:8100 and serves the frontend
depends_on:
postgres-setup:
condition: service_completed_successfully
env_file:
- .env
environment:
POSTGRES_HOST: "postgres"