Lev 1 year ago
parent
commit
66221a934a
  1. 2
      docker-compose.yml
  2. 29
      searching-front/.env
  3. 2
      searching-front/services/main.ts

2
docker-compose.yml

@ -34,6 +34,7 @@ services:
- elasticsearch
- db
- influxdb
env_file: ./searching-front/.env.local
watcher:
ports:
- '5555:5555'
@ -44,6 +45,7 @@ services:
context: ./searching-front
dockerfile: Dockerfile.watcher
restart: always
env_file: ./searching-front/.env.local
nginx:
restart: always
depends_on:

29
searching-front/.env

@ -1,3 +1,26 @@
# This env file should be checked into source control
# This is the place for default values for all environments
# Values in `.env.local` and `.env.production` will override these values
# This env file should NOT be checked into source control
# This is the place for values that changed for every developer
# SQLite is ready to go out of the box, but you can switch to Postgres
# by first changing the provider from "sqlite" to "postgres" in the Prisma
# schema file and by second swapping the DATABASE_URL below.
#DATABASE_URL=postgresql://searching_root2:searching_password2@db:5432/searching_front2
DATABASE_URL=postgresql://searching_root2:searching_password2@db:5432/searching_front2
POSTGRES_USER=searching_root2
POSTGRES_PASSWORD=searching_password2
POSTGRES_DB=searching_front2
SESSION_SECRET_KEY=ea6d6d65f46d98bb4063646092ee24e9
ELASTIC_URL=http://elasticsearch:9200
INFLUXDB_DB=db0
INFLUXDB_ADMIN_USER=root
INFLUXDB_ADMIN_PASSWORD=chameleon345234144
INFLUX_URL=http://influxdb:8086
INFLUX_TOKEN=MwnVhGdmjFhFzvjHMg92lEkoxQC5eqAC_whWay2ttxECZ-vUGWaUc9IHvPm30miUviLm27BpX5PG6RP_gQTDwQ==
INFLUX_ORG=Searching
INFLUX_BUCKET=Sites

2
searching-front/services/main.ts

@ -32,3 +32,5 @@ setInterval(() => {
console.log(new Date(), "Cron parse start")
run()
}, 3 * hour)

Loading…
Cancel
Save