mirror of https://github.com/boxyhq/jackson.git
added docker-compose for local dbs
This commit is contained in:
parent
3e7a8f2d76
commit
d21fa617f4
|
@ -0,0 +1,21 @@
|
|||
# this file is a helper to run all the supported dbs locally, the data is ephemeral since no host volumes will be mounted
|
||||
version: "3.6"
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:13
|
||||
ports:
|
||||
- "5432:5432"
|
||||
restart: always
|
||||
environment:
|
||||
POSTGRES_PASSWORD: ""
|
||||
POSTGRES_HOST_AUTH_METHOD: trust
|
||||
redis:
|
||||
image: redis:6.2.5-alpine
|
||||
ports:
|
||||
- "6379:6379"
|
||||
restart: always
|
||||
mongo:
|
||||
image: mongo:4.4.10
|
||||
ports:
|
||||
- "27017:27017"
|
||||
restart: always
|
|
@ -19,7 +19,7 @@ const dbs = {
|
|||
mem: {},
|
||||
redis: { url: 'redis://localhost:6379' },
|
||||
sql: {
|
||||
url: 'postgresql://postgres:postgres@localhost:5450/calendso',
|
||||
url: 'postgresql://postgres:postgres@localhost:5432/postgres',
|
||||
type: 'postgres',
|
||||
},
|
||||
mongo: { url: 'mongodb://localhost:27017/jackson' },
|
||||
|
|
|
@ -14,7 +14,7 @@ const idpEnabled = process.env.IDP_ENABLED === 'true';
|
|||
const db = {
|
||||
engine: process.env.DB_ENGINE || 'sql', // Supported values: redis, sql, mongo, mem. Keep comment in sync with db.js
|
||||
url:
|
||||
process.env.DB_URL || 'postgres://postgres:postgres@localhost:5450/jackson',
|
||||
process.env.DB_URL || 'postgres://postgres:postgres@localhost:5432/jackson',
|
||||
type: process.env.DB_TYPE || 'postgres', // Only needed if DB_ENGINE is sql. Supported values: postgres, cockroachdb, mysql, mariadb
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue