forked from trycompai/comp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (49 loc) · 1.17 KB
/
docker-compose.yml
File metadata and controls
50 lines (49 loc) · 1.17 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
services:
migrator:
build:
context: .
dockerfile: Dockerfile
target: migrator
env_file:
- packages/db/.env
seeder:
build:
context: .
dockerfile: Dockerfile
target: migrator
env_file:
- packages/db/.env
command: sh -lc "bunx prisma generate --schema=node_modules/@trycompai/db/dist/schema.prisma && bun packages/db/prisma/seed/seed.js"
app:
build:
context: .
dockerfile: Dockerfile
target: app
args:
NEXT_PUBLIC_BETTER_AUTH_URL: ${BETTER_AUTH_URL}
ports:
- '3000:3000'
env_file:
- apps/app/.env
healthcheck:
test: ['CMD-SHELL', 'curl -f http://localhost:3000/api/health || exit 1']
interval: 30s
timeout: 10s
retries: 3
command: sh -lc "node apps/app/server.js"
portal:
build:
context: .
dockerfile: Dockerfile
target: portal
args:
NEXT_PUBLIC_BETTER_AUTH_URL: ${BETTER_AUTH_URL_PORTAL}
ports:
- '3002:3000'
env_file:
- apps/portal/.env
healthcheck:
test: ['CMD-SHELL', 'curl -f http://localhost:3002/ || exit 1']
interval: 30s
timeout: 10s
retries: 3