-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
129 lines (117 loc) · 2.63 KB
/
docker-compose.yml
File metadata and controls
129 lines (117 loc) · 2.63 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
version: '3.8'
services:
api-gateway:
build:
context: ./api-gateway
dockerfile: Dockerfile
ports:
- "8085:8080"
depends_on:
- discovery-server
environment:
- SPRING_PROFILES_ACTIVE=docker
networks:
- toyota
discovery-server:
build:
context: ./discovery-server
dockerfile: Dockerfile
ports:
- "8761:8761"
environment:
- SPRING_PROFILES_ACTIVE=docker
networks:
- toyota
report-service:
build:
context: ./report-service
dockerfile: Dockerfile
depends_on:
- postgres
- discovery-server
environment:
- SPRING_PROFILES_ACTIVE=docker
networks:
- toyota
volumes:
- ./reports:/app/reports
sale-service:
build:
context: ./sale-service
dockerfile: Dockerfile
depends_on:
- postgres
- discovery-server
environment:
- SPRING_PROFILES_ACTIVE=docker
networks:
- toyota
product-service:
build:
context: ./product-service
dockerfile: Dockerfile
depends_on:
- postgres
- discovery-server
environment:
- SPRING_PROFILES_ACTIVE=docker
networks:
- toyota
user-management-service:
build:
context: ./user-management-service
dockerfile: Dockerfile
depends_on:
- postgres
- discovery-server
environment:
- SPRING_PROFILES_ACTIVE=docker
networks:
- toyota
keycloak:
image: quay.io/keycloak/keycloak:22.0.1
container_name: keycloak
environment:
- KC_DB=postgres
- KC_DB_URL=jdbc:postgresql://postgres:5432/keycloak_db
- KC_DB_USERNAME=postgres
- KC_DB_PASSWORD=9414
- KEYCLOAK_ADMIN=admin
- KEYCLOAK_ADMIN_PASSWORD=admin
- KC_IMPORT=/opt/keycloak/data/import/32bit_realm-realm.json
- KC_HOSTNAME=keycloak
ports:
- "8080:8080"
volumes:
- keycloak_data:/opt/keycloak/data
- ./keycloak-import:/opt/keycloak/data/import
networks:
- toyota
depends_on:
postgres:
condition: service_healthy
command: start-dev --import-realm
postgres:
image: postgres:16
container_name: postgres
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=9414
- POSTGRES_DB=storage
ports:
- '5432:5432'
volumes:
- postgres_data:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- toyota
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 30s
timeout: 10s
retries: 5
volumes:
postgres_data:
keycloak_data:
networks:
toyota: