-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (55 loc) · 1.53 KB
/
Copy pathdocker-compose.yml
File metadata and controls
58 lines (55 loc) · 1.53 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
services:
db:
image: postgres:15-alpine
restart: always
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: transitiq
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
backend:
build:
context: .
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
- DATABASE_URL=${DATABASE_URL:?required - set in .env}
- JWT_SECRET=${JWT_SECRET:?required - set in .env, min 32 random chars}
- RESEND_API_KEY=${RESEND_API_KEY:-}
- EMAIL_FROM=${EMAIL_FROM:-TransitIQ <onboarding@resend.dev>}
- IYZICO_API_KEY=${IYZICO_API_KEY:-}
- IYZICO_SECRET_KEY=${IYZICO_SECRET_KEY:-}
- IYZICO_BASE_URL=${IYZICO_BASE_URL:-https://sandbox-api.iyzipay.com}
- GOOGLE_CLIENT_ID=${GOOGLE_CLIENT_ID:-}
- GOOGLE_CLIENT_SECRET=${GOOGLE_CLIENT_SECRET:-}
- GOOGLE_CALLBACK_URL=${GOOGLE_CALLBACK_URL:-}
- FRONTEND_URL=${FRONTEND_URL:-http://localhost:3001}
- ALLOWED_ORIGINS=${ALLOWED_ORIGINS:-http://localhost:3001}
- NODE_ENV=${NODE_ENV:-development}
depends_on:
- db
volumes:
- .:/app
- /app/node_modules
- /app/dist
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "3001:3001"
environment:
- NEXT_PUBLIC_API_URL=http://localhost:3000
- WATCHPACK_POLLING=true
depends_on:
- backend
volumes:
- ./frontend:/app
- /app/node_modules
- /app/.next
volumes:
postgres_data: