Skip to content

Commit 06123bb

Browse files
committed
Limit resources of containers to something realistic or will intentionally cause issues.
1 parent 53349d4 commit 06123bb

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

docker-compose.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ volumes:
44
services:
55
db:
66
image: ghcr.io/hydrologicengineeringcenter/cwms-database/cwms/database-ready-ora-23.5:latest-dev
7+
deploy:
8+
resources:
9+
limits:
10+
cpus: 6
11+
memory: 6g
712
environment:
813
#- ORACLE_DATABASE=FREEPDB1
914
- ORACLE_PASSWORD=badSYSpassword
@@ -55,7 +60,11 @@ services:
5560
target: api
5661
context: .
5762
dockerfile: Dockerfile
58-
#command: bash -c "/conf/installcerts.sh && /usr/local/tomcat/bin/catalina.sh run"
63+
deploy:
64+
resources:
65+
limits:
66+
cpus: 2
67+
memory: 1024m
5968
restart: unless-stopped
6069
volumes:
6170
- ./compose_files/pki/certs:/conf/
@@ -94,6 +103,11 @@ services:
94103

95104
auth:
96105
image: quay.io/keycloak/keycloak:19.0.1
106+
deploy:
107+
resources:
108+
limits:
109+
cpus: .5
110+
memory: 1024m
97111
command: ["start-dev", "--features-disabled=admin2","--import-realm"]
98112
healthcheck:
99113
test: "/usr/bin/curl -If localhost:${APP_PORT:-8081}/auth/health/ready || exit 1"
@@ -128,6 +142,11 @@ services:
128142
# Proxy for HTTPS for OpenID
129143
traefik:
130144
image: "traefik:v3.6.2"
145+
deploy:
146+
resources:
147+
limits:
148+
cpus: .5
149+
memory: 500m
131150
ports:
132151
- "${APP_PORT:-8081}:80"
133152
expose:

0 commit comments

Comments
 (0)