Hi there, I have a weird issue. My prisma docker i...
# orm-help
j
Hi there, I have a weird issue. My prisma docker image keeps restarting. It seems there is java exception with the postgresql connector and I don't have idea of what can I do in order to fix it. Can you help me?
Docker version:
docker-compose.yml
Copy code
version: "3"
services:
  prisma:
    image: prismagraphql/prisma:1.29
    restart: always
    ports:
      - "0.0.0.0:4467:4467"
    environment:
      PRISMA_CONFIG: |
        port: 4467
        databases:
          default:
            connector: postgres:11
            host: postgres
            user: prisma
            password: prisma
            rawAccess: true
            port: 5432
            migrations: true
  postgres:
    image: postgres
    restart: always
    environment:
      POSTGRES_USER: prisma
      POSTGRES_PASSWORD: prisma
    ports:
      - "127.0.0.1:5433:5432"
    volumes:
      - postgres:/var/lib/postgresql/data
  web:
    build: .
    links:
      - "postgres:db"
    command: npm start
    volumes:
      - ./dist:/server/dist
    ports:
      - "0.0.0.0:4000:4000"

volumes:
  postgres:
After reading some docs. I found a solution, thanks!
💯 1
The solution: 1. connect: postgres // dont specify the version 2. declare a network, and use it for the prisma image and postgres image to allow communication between them
Copy code
networks:
  net-prisma-project: