diff --git a/docker-compose.yml b/docker-compose.yml index d12850e..36f4812 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -34,16 +34,18 @@ services: - elasticsearch - db - influxdb + env_file: ./searching-front/.env.local watcher: ports: - '5555:5555' container_name: watcher depends_on: - elasticsearch - build: + build: context: ./searching-front dockerfile: Dockerfile.watcher restart: always + env_file: ./searching-front/.env.local nginx: restart: always depends_on: diff --git a/searching-front/.env b/searching-front/.env index 5cd1aca..9ca72d5 100644 --- a/searching-front/.env +++ b/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 diff --git a/searching-front/services/main.ts b/searching-front/services/main.ts index a887bbb..9b5d033 100644 --- a/searching-front/services/main.ts +++ b/searching-front/services/main.ts @@ -32,3 +32,5 @@ setInterval(() => { console.log(new Date(), "Cron parse start") run() }, 3 * hour) + +