add init scirpt to docker compose

This commit is contained in:
Nawaz Dhandala
2021-05-14 14:23:39 +01:00
parent f103e98fde
commit 44eee061de
2 changed files with 13 additions and 1 deletions

View File

@@ -142,6 +142,18 @@ services:
environment:
- IS_SAAS_SERVICE=${IS_SAAS_SERVICE}
init-script:
build: ./init-script
env_file:
- ./init-script/.env
environment:
- MONGO_URL=mongodb://mongo:27017/fyipedb
- REDIS_HOST=redis
- IS_SAAS_SERVICE=${IS_SAAS_SERVICE}
depends_on:
- mongo
- redis
##IMPORTANT:
## This container is an SMTP server used to send emails.
## Setup private, tls_cert and tls_key keys before running this part

View File

@@ -9,7 +9,7 @@ let page;
describe('Resend Verification API', () => {
beforeAll(async () => {
jest.setTimeout(30000);
jest.setTimeout(init.timeout);
browser = await puppeteer.launch(utils.puppeteerLaunchConfig);
page = await browser.newPage();
await page.setUserAgent(utils.agent);