-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (42 loc) · 929 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
45 lines (42 loc) · 929 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
45
services:
# Frontend (Vite + React)
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: better-auth-frontend
ports:
- "4000:4000"
environment:
- VITE_API_URL=http://backend:4200
volumes:
- ./frontend:/app
- /app/node_modules
depends_on:
- backend
restart: unless-stopped
networks:
- better-auth-network
# Backend (Hono + Node.js + SQLite)
# Uses the Node.js entry point with better-sqlite3
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: better-auth-backend
ports:
- "4200:4200"
env_file:
- ./backend/.env
volumes:
- ./backend:/app
- /app/node_modules
- backend_data:/app/data
restart: unless-stopped
networks:
- better-auth-network
networks:
better-auth-network:
driver: bridge
volumes:
backend_data: