-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
45 lines (42 loc) · 1.1 KB
/
compose.yml
File metadata and controls
45 lines (42 loc) · 1.1 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
name: "learneasy"
services:
database:
image: "postgres:17"
volumes:
- "database-data:/var/lib/postgresql/data"
environment:
POSTGRES_USER: "administrator"
POSTGRES_PASSWORD: 12345678
POSTGRES_DB: "learneasy"
healthcheck:
test: ["CMD", "pg_isready", "-U", "administrator", "-d", "learneasy"]
interval: 3s
timeout: 3s
retries: 20
backend:
depends_on:
database:
condition: service_healthy
build: ./backend/
ports:
- "8080:8080"
environment:
LEARNEASY_DATABASE_SETUP: "update"
LEARNEASY_DATABASE_DRIVER_CLASS_NAME: "org.postgresql.Driver"
LEARNEASY_DATABASE_URL: "jdbc:postgresql://database:5432/learneasy"
LEARNEASY_DATABASE_USERNAME: "administrator"
LEARNEASY_DATABASE_PASSWORD: "12345678"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/actuator/health"]
interval: 3s
timeout: 3s
retries: 20
frontend:
depends_on:
backend:
condition: service_healthy
build: ./frontend/
ports:
- "5173:5173"
volumes:
database-data: