-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (38 loc) · 1.01 KB
/
docker-compose.yml
File metadata and controls
40 lines (38 loc) · 1.01 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
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: ez_admin_backend
restart: unless-stopped
ports:
- "5000:5000"
env_file:
- ./backend/.env
volumes:
# Persistent SQLite storage for better-auth
- auth_data:/app/data
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:5000/api/health || exit 1
interval: 30s
timeout: 10s
start_period: 10s
retries: 3
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
args:
# These are baked into the Next.js bundle at build time.
# Set these in a .env file at the project root or pass via shell env.
NEXT_PUBLIC_API_URL: http://localhost:5000/api
NEXT_PUBLIC_BETTER_AUTH_URL: http://localhost:5000
container_name: ez_admin_frontend
restart: unless-stopped
ports:
- "3000:3000"
depends_on:
backend:
condition: service_healthy
volumes:
auth_data: