-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (64 loc) · 1.72 KB
/
docker-compose.yml
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
services:
postgres:
image: postgres:14.10-alpine
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: workstation-rack
POSTGRES_USER: postgres
ports:
- "5433:5432"
networks:
- workstation-rack-net
volumes:
- ./db/init-db:/docker-entrypoint-initdb.d
container_name: workstation-rack-db
healthcheck:
test: [ "CMD-SHELL", "psql -U postgres -d workstation-rack -t 15 -c 'SELECT 1'" ]
interval: "5s"
timeout: "15s"
retries: 10
liquibase:
image: liquibase/liquibase:latest-alpine
container_name: workstation-rack-liquibase
depends_on:
postgres:
condition: "service_healthy"
volumes:
- ./db/changelog:/liquibase/changelog
command: --logLevel=info --defaultsFile=/liquibase/changelog/liquibase-docker.properties --contexts=dev update
networks:
- workstation-rack-net
application:
deploy:
resources:
limits:
cpus: '1'
memory: 1G
build:
context: .
dockerfile: Dockerfile
networks:
- workstation-rack-net
environment:
- db_host=workstation-rack-db
- db_port=5432
- db_name=workstation-rack
- db_schema=workstation_rack
- db_user=postgres
- db_password=postgres
- db_pool_min_size=2
- db_pool_max_size=5
- JAVA_ENABLE_DEBUG=true
- JAVA_DEBUG_PORT=*:5005
- QUARKUS_PROFILE=prod
- MSAL_AUTHORITY=https://login.microsoftonline.com/61f30b8e-4f6b-44fe-9bc2-041e3a9f7346
ports:
- "8080:8080"
- "5005:5005"
container_name: workstation-rack-application
depends_on:
postgres:
condition: "service_healthy"
networks:
workstation-rack-net:
driver: bridge