diff --git a/docker-compose.yml b/docker-compose.yml index af2e74a..26da28b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,16 +1,11 @@ -version: "3.2" +version: "3.7" services: db: image: mongo:4.4-bionic ports: - - "127.0.0.1:20723:27017" - test: - image: sealious-test:latest - build: - context: . - dockerfile: test.Dockerfile - volumes: - - ./:/opt/app/ + - "127.0.0.1:20724:27017" + mailcatcher: + image: schickling/mailcatcher:latest ports: - - "127.0.0.1:8080:8080" - user: ${UID:-1000}:${GID:-1000} + - "127.0.0.1:1080:1080" + - "127.0.0.1:1025:1025" diff --git a/src/back/index.ts b/src/back/index.ts index 1780ab1..d8a3744 100644 --- a/src/back/index.ts +++ b/src/back/index.ts @@ -5,7 +5,7 @@ import Static from "koa-static"; import Router from "@koa/router"; import mount from "koa-mount"; const locreq = _locreq(__dirname); -import Sealious, { App, Collection, FieldTypes, Policies } from "sealious"; +import Sealious, { App } from "sealious"; declare module "koa" { interface BaseContext { @@ -19,20 +19,21 @@ const app = new (class extends App { upload_path: locreq.resolve("uploaded_files"), datastore_mongo: { host: "localhost", - port: 20723, - db_name: "sealious-playground", + port: 20724, + db_name: "cloud-dashboard", }, email: { - from_address: "zglszanskoweb@example.com", - from_name: "Zgłaszańsko web", + from_address: "sealious-playground@example.com", + from_name: "Sealious playground app", }, }; + manifest = { - name: "Zgłaszańsko web", + name: "Sealious Playground", logo: resolve(__dirname, "../assets/logo.png"), version: "0.0.1", - default_language: "pl", - base_url: "localhost:8080", + default_language: "en", + base_url: "http://localhost:8080", admin_email: "admin@example.com", colors: { primary: "#5294a1", @@ -43,8 +44,8 @@ const app = new (class extends App { }; })(); -app.HTTPServer.addStaticRoute("/", locreq.resolve("public")); -const port = 8080; +const port = 3000; console.log(`Listening on 127.0.0.1:${port}`); app.start(); +app.HTTPServer.addStaticRoute("/", locreq.resolve("public"));