add Dockerfile with all in one docker image (#431)
* Add Dockerfile with all in one docker image * Change to alpine image and reduce node_modules size * Improve documentation and fix changelog and license * Update changelog Co-authored-by: Valentin Zickner <ghostfolio@zickner.ch> Co-authored-by: Thomas <4159106+dtslvr@users.noreply.github.com>pull/445/head
parent
51e7b94ad0
commit
e7fb31d1a6
@ -0,0 +1,24 @@
|
|||||||
|
version: '3.7'
|
||||||
|
services:
|
||||||
|
postgres:
|
||||||
|
image: postgres:12
|
||||||
|
env_file:
|
||||||
|
- ../.env
|
||||||
|
volumes:
|
||||||
|
- postgres:/var/lib/postgresql/data
|
||||||
|
|
||||||
|
redis:
|
||||||
|
image: 'redis:alpine'
|
||||||
|
|
||||||
|
ghostfolio:
|
||||||
|
build: ../
|
||||||
|
env_file:
|
||||||
|
- ../.env
|
||||||
|
environment:
|
||||||
|
REDIS_HOST: 'redis'
|
||||||
|
DATABASE_URL: postgresql://user:password@postgres:5432/ghostfolio-db?sslmode=prefer
|
||||||
|
ports:
|
||||||
|
- 3333:3333
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
postgres:
|
@ -1,10 +1,10 @@
|
|||||||
import {
|
const {
|
||||||
AccountType,
|
AccountType,
|
||||||
DataSource,
|
DataSource,
|
||||||
PrismaClient,
|
PrismaClient,
|
||||||
Role,
|
Role,
|
||||||
Type
|
Type
|
||||||
} from '@prisma/client';
|
} = require('@prisma/client');
|
||||||
const prisma = new PrismaClient();
|
const prisma = new PrismaClient();
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
Loading…
Reference in new issue