-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (61 loc) · 1.86 KB
/
docker-compose.yml
File metadata and controls
65 lines (61 loc) · 1.86 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
60
61
62
63
64
65
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_DB: ${POSTGRES_DB:-ezdeploy}
POSTGRES_USER: ${POSTGRES_USER:-ezdeploy}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-ezdeploy}
ports:
- "${POSTGRES_PORT:-5432}:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-ezdeploy} -d ${POSTGRES_DB:-ezdeploy}"]
interval: 5s
timeout: 3s
retries: 20
backend:
build:
context: ./backend
environment:
APP_ENV: ${APP_ENV:-development}
BACKEND_PORT: ${BACKEND_PORT:-8080}
DATABASE_URL: ${DATABASE_URL:-postgres://ezdeploy:ezdeploy@postgres:5432/ezdeploy?sslmode=disable}
SESSION_SECRET: ${SESSION_SECRET:-development-session-secret-change-me}
CORS_ORIGINS: ${CORS_ORIGINS:-http://localhost:5173,http://frontend:5173}
STORAGE_ROOT: /app/data
ports:
- "${BACKEND_PORT:-8080}:8080"
volumes:
- ./data:/app/data
depends_on:
postgres:
condition: service_healthy
worker:
build:
context: ./backend
command: ["/app/worker"]
environment:
APP_ENV: ${APP_ENV:-development}
DATABASE_URL: ${DATABASE_URL:-postgres://ezdeploy:ezdeploy@postgres:5432/ezdeploy?sslmode=disable}
SESSION_SECRET: ${SESSION_SECRET:-development-session-secret-change-me}
STORAGE_ROOT: /app/data
DOCKER_HOST: unix:///var/run/docker.sock
RUNTIME_NETWORK: ezdeploy_default
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./data:/app/data
depends_on:
postgres:
condition: service_healthy
frontend:
build:
context: ./frontend
environment:
VITE_API_BASE_URL: ${VITE_API_BASE_URL:-http://localhost:8080}
ports:
- "5173:5173"
depends_on:
- backend
volumes:
postgres_data: