-
Notifications
You must be signed in to change notification settings - Fork 290
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (61 loc) · 1.46 KB
/
docker-compose.yml
File metadata and controls
62 lines (61 loc) · 1.46 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
x-logging: &default-logging
driver: json-file
options:
max-size: '10m'
max-file: '5'
compress: 'true'
services:
migrator:
build:
context: .
dockerfile: Dockerfile
target: migrator
env_file:
- packages/db/.env
logging: *default-logging
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"
logging: *default-logging
app:
build:
context: .
dockerfile: Dockerfile
target: app
args:
NEXT_PUBLIC_BETTER_AUTH_URL: ${BETTER_AUTH_URL}
ports:
- '3000:3000'
env_file:
- apps/app/.env
restart: unless-stopped
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"
logging: *default-logging
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
restart: unless-stopped
healthcheck:
test: ['CMD-SHELL', 'curl -f http://localhost:3000/ || exit 1']
interval: 30s
timeout: 10s
retries: 3
logging: *default-logging