-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
59 lines (53 loc) · 1.37 KB
/
compose.yaml
File metadata and controls
59 lines (53 loc) · 1.37 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
services:
frontend:
image: devmhimran/taskbit:v1.0
build:
context: .
dockerfile: Dockerfile
ports:
- '3000:3000'
develop:
watch:
- path: ./package.json
action: rebuild
- path: ./yarn.lock
action: rebuild
- path: .
target: /app
action: sync
environment:
- DATABASE_URL=${DATABASE_URL}
- NEXT_PUBLIC_JWT_ACCESS_SECRET=${NEXT_PUBLIC_JWT_ACCESS_SECRET}
- NEXT_PUBLIC_JWT_REFRESH_SECRET=${NEXT_PUBLIC_JWT_REFRESH_SECRET}
- NEXT_PUBLIC_AUTH_SECRET=${NEXT_PUBLIC_AUTH_SECRET}
- NEXT_PUBLIC_APP_URL=${NEXT_PUBLIC_APP_URL}
- APP_BASE_URL=${APP_BASE_URL}
- RESEND_API_KEY=${RESEND_API_KEY}
- EMAIL_FROM_ADDRESS=${EMAIL_FROM_ADDRESS}
depends_on:
- db
studio:
build:
context: .
dockerfile: Dockerfile
command: sh -c "yarn prisma generate && yarn prisma studio"
ports:
- '5555:5555'
environment:
- DATABASE_URL=${DATABASE_URL}
depends_on:
- db
db:
image: postgres:latest
restart: always
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- PGDATA=/var/lib/postgresql/data/pgdata
ports:
- '5432:5432'
volumes:
- postgres_data:/var/lib/postgresql
volumes:
postgres_data: