-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (63 loc) · 1.61 KB
/
docker-compose.yml
File metadata and controls
69 lines (63 loc) · 1.61 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
66
67
68
69
version: '3'
services:
db:
image: postgres:15-alpine
container_name: postgres_db
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: database
volumes:
- db_data:/var/lib/postgresql/data
ports:
- "5433:5433"
eureka-server:
image: eurekaserver:latest
build:
context: ./eureka-server
ports:
- "8761:8761"
gateway:
image: gateway:latest
build:
context: ./gateway
ports:
- "8080:8080"
environment:
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://eureka-server:8761/eureka/
SPRING_DATASOURCE_URL: jdbc:postgresql://db:5432/database
SPRING_DATASOURCE_USERNAME: user
SPRING_DATASOURCE_PASSWORD: password
depends_on:
- eureka-server
- db
book-service:
image: book-service:latest
build:
context: ./book-service
ports:
- "8081:8081"
environment:
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://eureka-server:8761/eureka/
SPRING_DATASOURCE_URL: jdbc:postgresql://db:5432/database
SPRING_DATASOURCE_USERNAME: user
SPRING_DATASOURCE_PASSWORD: password
depends_on:
- eureka-server
- db
borrow-service:
image: borrow-service:latest
build:
context: ./borrow-service
ports:
- "8082:8080"
environment:
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://eureka-server:8761/eureka/
SPRING_DATASOURCE_URL: jdbc:postgresql://db:5432/database
SPRING_DATASOURCE_USERNAME: user
SPRING_DATASOURCE_PASSWORD: password
depends_on:
- eureka-server
- db
volumes:
db_data: