-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
57 lines (54 loc) · 1.32 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
57 lines (54 loc) · 1.32 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
services:
postgres:
image: postgres:16
container_name: easykan-postgres-dev
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_USER=${POSTGRES_USER}
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 10s
timeout: 5s
retries: 3
volumes:
- data:/var/lib/postgresql/data
server:
build:
context: .
dockerfile: ./server/Dockerfile.dev
container_name: easykan-server-dev
ports:
- "8080:8080"
env_file:
- ./.env
environment:
- SPRING_PROFILES_ACTIVE=dev
- SPRING_DATASOURCE_URL=jdbc:postgresql://postgres:5432/${POSTGRES_DB}
- SPRING_DATASOURCE_USERNAME=${POSTGRES_USER}
- SPRING_DATASOURCE_PASSWORD=${POSTGRES_PASSWORD}
volumes:
- ./server/src:/app/src
- ./server/bin:/app/bin
- /app/build
- /app/.gradle
depends_on:
postgres:
condition: service_healthy
client:
build:
context: .
dockerfile: ./client/Dockerfile.dev
container_name: easykan-client-dev
ports:
- "5173:5173"
env_file:
- ./.env
environment:
- REACT_APP_API_URL=http://localhost:8080/api
depends_on:
- server
volumes:
data: