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

4
docker-compose.yml

@ -34,16 +34,18 @@ services:
- elasticsearch - elasticsearch
- db - db
- influxdb - influxdb
env_file: ./searching-front/.env.local
watcher: watcher:
ports: ports:
- '5555:5555' - '5555:5555'
container_name: watcher container_name: watcher
depends_on: depends_on:
- elasticsearch - elasticsearch
build: build:
context: ./searching-front context: ./searching-front
dockerfile: Dockerfile.watcher dockerfile: Dockerfile.watcher
restart: always restart: always
env_file: ./searching-front/.env.local
nginx: nginx:
restart: always restart: always
depends_on: depends_on:

29
searching-front/.env

@ -1,3 +1,26 @@
# This env file should be checked into source control # This env file should NOT be checked into source control
# This is the place for default values for all environments # This is the place for values that changed for every developer
# Values in `.env.local` and `.env.production` will override these values
# 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") console.log(new Date(), "Cron parse start")
run() run()
}, 3 * hour) }, 3 * hour)

Loading…
Cancel
Save