Philipp
05/27/2020, 4:51 PMprisma-server.yml
or Dockerfile
? It seems the current maximum is 2GB, but the server has 4GB available. Didn't find any solution so far, thanks 🙂Pedro Jardim
05/27/2020, 5:57 PMRyan
05/28/2020, 7:45 AMversion: '3'
services:
prisma:
image: prismagraphql/prisma:1.34.10
restart: always
ports:
- '4466:4466'
environment:
JAVA_OPTS: '-Xmx1350m'
PRISMA_CONFIG: |
port: 4466
databases:
default:
connector: postgres
host: host.docker.internal
database: dbname
schema: schema
user: username
password: password
ssl: false
rawAccess: true
port: '5432'
migrations: true
The JAVA_OPTS
value should do the trick.Philipp
05/28/2020, 1:07 PMFROM prismagraphql/prisma:1.34.10
COPY prisma-server.yml /
ENV _JAVA_OPTIONS -Xmx6144m
ENV PRISMA_CONFIG_PATH /prisma-server.yml
Approach of Ryan should have the same effect, however don't know if the leading underscore makes a difference. Seems to work for our servers.Pedro Jardim
05/28/2020, 9:14 PMPedro Jardim
05/28/2020, 9:30 PM