JabRefOnline icon indicating copy to clipboard operation
JabRefOnline copied to clipboard

Make it easer to locally setup database

Open tobiasdiez opened this issue 4 years ago • 5 comments

Following https://www.prisma.io/docs/postgres/database/local-development

Alternative Docker: As for example done here: https://github.com/fivethree-team/nestjs-prisma-starter

tobiasdiez avatar Mar 05 '21 23:03 tobiasdiez

If you still need it, this is what I use....

version: '3.9'

services:

postgres: 
     image: postgres 
     container_name: postgres 
     restart: always 
     environment: 
              POSTGRES_PASSWORD: yourPassword 
              POSTGRES_HOST_AUTH_METHOD: trust 
              POSTGRES_USER: postgress
              POSTGRES_DB: postgres_dvl 
     command: " postgres -c listen_addresses=* " 
     command: " postgres -c port=5432 " 
     ports:
          - 5432:5432 
     networks: 
           - postgres # optional helps keep projects organized
      volumes: 
                  - "post-data:/var/lib/postgresql/data/"  # persistent data

    pgadmin: 
           image: dpage/pgadmin4 
    container_name: pgadmin 
    ports: 
           - 7070:80 
    environment: 
                 PGADMIN_DEFAULT_EMAIL: [email protected]
                 PGADMIN_DEFAULT_PASSWORD: yourPassword 
    restart: unless-stopped 
    networks: 
         - postgres

networks: postgres: volumes: post-data:

closb avatar Jul 12 '21 02:07 closb

Thanks @negotiamini! That looks already like a pretty good start. May I ask you to open a PR?

tobiasdiez avatar Jul 16 '21 07:07 tobiasdiez

Just forked, I'll try to have this done for you by Tuesday at the latest. I have a deadline on Monday I am desperately trying to meet.

closb avatar Jul 17 '21 17:07 closb

I will experiment with setting up the whole JabRef-Online as single docker-compose file. I already have done some docker files for other node js projects that I can reuse as template.

Siedlerchr avatar Aug 19 '21 17:08 Siedlerchr