-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
91 lines (85 loc) · 2.24 KB
/
compose.yaml
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
81
82
83
84
85
86
87
88
89
90
91
services:
db:
image: postgres:16.3-alpine3.19
environment:
- POSTGRES_USER=ultimate-ltt
- POSTGRES_PASSWORD=ultimate-ltt
- POSTGRES_DB=ultimate-ltt
volumes:
- postgres_data:/var/lib/postgresql/data/
ports:
- '5432:5432'
stop_grace_period: 2s
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U ultimate-ltt']
interval: 10s
timeout: 1s
retries: 5
web:
image: oven/bun:1.1.8-slim
environment:
- DATABASE_URL=postgresql://ultimate-ltt:ultimate-ltt@db/ultimate-ltt?schema=public
- DEBUG=True
volumes:
- .:/home/bun/app
ports:
- '3000:3000'
- '6499:6499'
depends_on:
db:
condition: service_healthy
restart: true
migrate:
condition: service_completed_successfully
bun:
condition: service_completed_successfully
command: 'bun --watch --inspect=localhost:6499/debug run index.ts'
stop_grace_period: 0s
stop_signal: SIGKILL
studio:
image: node:22.2.0-alpine3.19
environment:
- DATABASE_URL=postgresql://ultimate-ltt:ultimate-ltt@db/ultimate-ltt?schema=public
working_dir: /home/node
volumes:
- ./node_modules:/home/node/node_modules
- ./prisma/schema.prisma:/home/node/prisma/schema.prisma
ports:
- '5555:5555'
depends_on:
db:
condition: service_healthy
restart: true
command: 'npx prisma studio'
stop_grace_period: 0s
stop_signal: SIGKILL
migrate:
image: node:22.2.0-alpine3.19
environment:
- DATABASE_URL=postgresql://ultimate-ltt:ultimate-ltt@db/ultimate-ltt?schema=public
working_dir: /home/node
volumes:
- .:/home/node
depends_on:
db:
condition: service_healthy
restart: true
command: 'npx prisma migrate dev --name init'
bun:
image: oven/bun:1.1.8-slim
volumes:
- .:/home/bun/app
command: 'bun install'
tailwind:
image: oven/bun:1.1.8-slim
volumes:
- .:/home/bun/app
depends_on:
bun:
condition: service_completed_successfully
command: 'bunx @tailwindcss/cli@next -i css/tailwind.css -o static/app.css --watch'
tty: true
stop_grace_period: 0s
stop_signal: SIGKILL
volumes:
postgres_data: