-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (40 loc) · 984 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (40 loc) · 984 Bytes
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
version: '3.8'
services:
postgres:
image: postgres:15
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: hypervibe
volumes:
- postgres_data:/var/lib/postgresql/data
api:
build:
context: ./apps/api
dockerfile: Dockerfile
ports:
- '4000:4000'
environment:
DATABASE_URL: postgresql://postgres:password@postgres:5432/hypervibe
JWT_SECRET: dev-secret-change-in-prod
FRONTEND_URL: http://localhost:5173
NODE_ENV: development
depends_on:
- postgres
volumes:
- ./apps/api:/app
- /app/node_modules
prisma-studio:
image: node:18
working_dir: /app
command: npx prisma studio --port 5555 --browser none
ports:
- '5555:5555'
environment:
DATABASE_URL: postgresql://postgres:password@postgres:5432/hypervibe
depends_on:
- postgres
volumes:
- ./packages/database:/app
volumes:
postgres_data: