JabRefOnline
JabRefOnline copied to clipboard
Make it easer to locally setup database
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
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:
Thanks @negotiamini! That looks already like a pretty good start. May I ask you to open a PR?
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.
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.