forked from KartikLabhshetwar/oneurl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
50 lines (48 loc) · 1.13 KB
/
docker-compose.dev.yml
File metadata and controls
50 lines (48 loc) · 1.13 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
services:
frontend:
build:
context: .
dockerfile: Dockerfile
target: deps
ports:
- "3000:3000"
volumes:
- .:/app
- /app/node_modules
- /app/.next
environment:
- NODE_ENV=development
- BACKEND_URL=http://backend:3001
- NEXT_PUBLIC_BACKEND_URL=http://localhost:3001
command: bun run dev
depends_on:
- backend
networks:
- oneurl-network
backend:
build:
context: ./backend
dockerfile: Dockerfile
target: deps
ports:
- "3001:3001"
volumes:
- ./backend:/app
- /app/node_modules
environment:
- NODE_ENV=development
- PORT=3001
- DATABASE_URL=${DATABASE_URL}
- BETTER_AUTH_SECRET=${BETTER_AUTH_SECRET}
- BETTER_AUTH_URL=http://localhost:3001
- BACKEND_URL=http://localhost:3001
- FRONTEND_URL=http://localhost:3000
- GOOGLE_CLIENT_ID=${GOOGLE_CLIENT_ID}
- GOOGLE_CLIENT_SECRET=${GOOGLE_CLIENT_SECRET}
- UPLOADTHING_TOKEN=${UPLOADTHING_TOKEN}
command: bun run dev
networks:
- oneurl-network
networks:
oneurl-network:
driver: bridge