-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
80 lines (75 loc) · 1.95 KB
/
docker-compose.yml
File metadata and controls
80 lines (75 loc) · 1.95 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
version: '3.8'
name: lighthouse
services:
postgres:
image: postgres:latest
container_name: postgres-container-lighthouse
restart: always
networks:
- lighthouse
ports:
- "5432:5432"
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- ${POSTGRES_DATA_PATH}:/var/lib/postgresql/data
- ./backend/postgres/init/db_schemas.sql:/docker-entrypoint-initdb.d/db_schemas.sql
- ./backend/postgres/init/01-init-db.sh:/docker-entrypoint-initdb.d/01-init-db.sh
- ./backend/postgres/init/insert_models.sql:/docker-entrypoint-initdb.d/insert_models.sql
pgadmin:
image: dpage/pgadmin4:latest
container_name: pgadmin-container-lighthouse
restart: always
networks:
- lighthouse
ports:
- "8081:80"
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
MAX_LOGIN_ATTEMPTS: 0
depends_on:
- postgres
volumes:
- ${PGADMIN_DATA_PATH}:/var/lib/pgadmin
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- 5001:5001
networks:
- lighthouse
environment:
- DATA_DIR=/app/data
- FRONTEND_URL=${FRONTEND_URL}
- DB_HOST=${DB_HOST}
- DB_NAME=${POSTGRES_DB}
- DB_USER=${POSTGRES_USER}
- DB_PASSWORD=${POSTGRES_PASSWORD}
- DB_PORT=${DB_PORT}
- SERVER_URL=${SERVER_URL}
volumes:
- ./backend/app/ragas/test_cases:/app/app/ragas/test_cases
depends_on:
- postgres
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "3000:3000"
networks:
- lighthouse
environment:
- DEV_MODE=true
- NEXT_PUBLIC_SERVER_URL=${NEXT_PUBLIC_SERVER_URL}
depends_on:
- backend
networks:
lighthouse:
driver: bridge
paadmin:
driver: bridge