-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
79 lines (73 loc) · 1.58 KB
/
docker-compose.yml
File metadata and controls
79 lines (73 loc) · 1.58 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
version: "3.9"
services:
backend:
build:
context: ./backend
dockerfile: ./docker/backend.dockerfile
container_name: init-hub-backend
restart: always
ports:
- "3000:3000"
env_file: "./.env"
depends_on:
- postgres
command: >
sh -c "npx prisma migrate deploy &&
node dist/prisma/seed.js &&
node dist/src/main.js"
networks:
- init-hub-network
agent:
build:
context: ./agent
dockerfile: ./docker/agent.dockerfile
container_name: init-hub-agent
restart: always
ports:
- "8000:8000"
env_file: "./.env"
volumes:
- ./agent:/app
networks:
- init-hub-network
frontend:
build:
context: ./frontend
dockerfile: ./docker/frontend.dockerfile
container_name: init-hub-frontend
restart: always
ports:
- "5173:5173"
env_file: "./.env"
volumes:
- ./frontend:/app
environment:
- CHOKIDAR_USEPOLLING=true
networks:
- init-hub-network
depends_on:
- backend
- agent
postgres:
image: pgvector/pgvector:pg15
container_name: inithub-postgres
environment:
POSTGRES_DB: inithub
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres -d inithub" ]
interval: 10s
timeout: 5s
retries: 5
ports:
- "5432:5432"
volumes:
- pg_data:/var/lib/postgresql/data
networks:
- init-hub-network
networks:
init-hub-network:
driver: bridge
volumes:
pg_data: