generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
114 lines (105 loc) · 3.11 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
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
x-frontend: &frontend
environment:
VITE_ZONE: DEV
VITE_USER_POOLS_ID: ca-central-1_t2HSZBHur
VITE_USER_POOLS_WEB_CLIENT_ID: 3g6n2ha1loi4kp1jhaq359vrvb
VITE_BACKEND_URL: http://localhost:8080
healthcheck:
test: curl http://localhost:3000"
interval: 15s
timeout: 5s
retries: 5
restart: always
x-backend: &backend
healthcheck:
test: curl -f http://localhost:8080/actuator/health | grep '"status":"UP"'
interval: 5s
timeout: 5s
retries: 5
#restart: always
x-db-vars: &db-vars
POSTGRES_USER: postgres
POSTGRES_PASSWORD: default
POSTGRES_DB: postgres
services:
frontend:
container_name: frontend
entrypoint: sh -c "npm ci && npm run start"
image: node:20-bullseye
ports: [ "3000:3000" ]
volumes: [ "./frontend:/app", "/app/node_modules" ]
working_dir: "/app"
<<: *frontend
caddy:
container_name: caddy
profiles: [ "caddy" ]
build: ./frontend
ports: [ "3005:3000" ]
volumes: [ "./frontend/Caddyfile:/etc/caddy/Caddyfile" ]
<<: *frontend
backend:
container_name: backend
entrypoint: sh -c './startup.sh'
#image: maven:3.9.6-amazoncorretto-21
image: maven:3.9.9-eclipse-temurin-17
network_mode: host
volumes:
- ./backend:/app
- $HOME/zscaler-certs:/certs
working_dir: /app
environment:
DATABASE_HOST: nrcdb03.bcgov
DATABASE_PORT: "1543"
DATABASE_USER: ${DATABASE_USER}
DATABASE_PASSWORD: ${DATABASE_PASSWORD}
SERVICE_NAME: dbq01.nrs.bcgov
ORACLEDB_KEYSTORE: /app/jssecacerts
ORACLEDB_SECRET: changeit
AWS_COGNITO_ISSUER_URI: https://cognito-idp.ca-central-1.amazonaws.com/ca-central-1_t2HSZBHur
POSTGRES_HOST: localhost
DASHBOARD_JOB_IDIR_USERS: ${DASHBOARD_JOB_IDIR_USERS}
<<: *db-vars
<<: *backend
database:
container_name: database
environment:
<<: *db-vars
volumes: [ "/pgdata" ]
ports: [ "5432:5432" ]
healthcheck:
test: pg_isready -U postgres
interval: 5s
timeout: 5s
retries: 5
image: postgis/postgis:13-master
backend-native:
container_name: backend-native
profiles: [ "native" ]
build: ./backend
ports: [ "8080:8080" ]
<<: *backend
wiremock:
image: "wiremock/wiremock:latest"
container_name: forest-client-api-stub
ports: [ "9000:9000", "9001:9001" ]
volumes:
- ./stub/:/home/wiremock/
entrypoint: [ "/docker-entrypoint.sh", "--enable-stub-cors", "--global-response-templating", "--port", "9000", "--https-port", "9001", "--verbose" ]
legacydb:
# profiles ensure the legacydb won't run on default `docker compose up`
# To start the legacy db along with other services, use `docker compose --profile legacy up`
profiles: [ "legacy" ]
container_name: oracle
environment:
APP_USER_PASSWORD: default
APP_USER: THE
ORACLE_RANDOM_PASSWORD: yes
platform: "linux/amd64"
image: gvenzl/oracle-free:23.7-full-faststart
ports: [ 1521:1521 ]
volumes: [ /opt/oracle/oradata ]
healthcheck:
test: [ "CMD-SHELL", "healthcheck.sh" ]
interval: 5s
timeout: 10s
retries: 10