-
Notifications
You must be signed in to change notification settings - Fork 19
/
docker-compose.yaml
97 lines (90 loc) · 1.87 KB
/
docker-compose.yaml
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
version: '3.9'
services:
backend:
image: hvu-backend
build: back/.
ports:
- "8081:8081"
expose:
- "8081"
command: mvn spring-boot:run
networks:
- hvu-networks
environment:
SPRING_PROFILES_ACTIVE: docker
SPRING_DATASOURCE_URL: jdbc:postgresql://backend-db:5432/hvu
SPRING_DATASOURCE_USERNAME: postgres
SPRING_DATASOURCE_PASSWORD: password
depends_on:
- backend-db
- keycloak
backend-db:
image: postgres:16.0
restart: always
environment:
POSTGRES_DB: hvu
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
TZ: America/Sao_Paulo
ports:
- "5433:5432"
expose:
- "5432"
networks:
- hvu-networks
volumes:
- pg-data:/var/lib/postgresql/data
keycloak:
image: quay.io/keycloak/keycloak
ports:
- "8080:8080"
networks:
- hvu-networks
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
DB_VENDOR: POSTGRES
DB_ADDR: keycloak-db
DB_PORT: 5432
DB_DATABASE: keycloak
DB_USER: postgres
DB_SCHEMA: public
DB_PASSWORD: password
command: start-dev
depends_on:
- keycloak-db
keycloak-db:
image: postgres:16.0
restart: always
environment:
POSTGRES_DB: keycloak
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
TZ: America/Sao_Paulo
ports:
- "5434:5432"
expose:
- "5432"
networks:
- hvu-networks
volumes:
- keycloak-pg-data:/var/lib/postgresql/data
frontend:
image: react-image
build: front/.
volumes:
- ./front/src:/app/src
ports:
- 3000:3000
networks:
- hvu-networks
depends_on:
- backend
volumes:
pg-data:
driver: local
keycloak-pg-data:
driver: local
networks:
hvu-networks:
driver: bridge