Skip to content

Commit

Permalink
fix: update envs and npm -> yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
ijaric committed Mar 19, 2024
1 parent 0437a7e commit 9b26555
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
9 changes: 7 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@ INTERCOM_API_KEY=YOUR_INTERCOM_API_KEY
OPENAI_API_KEY=YOUR_OPENAI_API_KEY
TELNYX_API_KEY=YOUR_TELNYX_API_KEY

POSTGRES_HOST=localhost
POSTGRES_HOST=postgres
POSTGRES_PORT=5432
POSTGRES_USER=ai_chatbot
POSTGRES_DATABASE=ai_chatbot
POSTGRES_PASSWORD=postgres

LOCAL=true
POSTGRES_DEV_PORT=25432

NGINX_PORT=80
API_PORT=3000

LOCAL=true
4 changes: 1 addition & 3 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ services:
env_file:
- .env
ports:
- '5433:5432'
- '${POSTGRES_DEV_PORT}:${POSTGRES_PORT}'
volumes:
- postgres_data:/var/lib/postgresql/data/
- ./schema.sql:/docker-entrypoint-initdb.d/dump.sql:ro
Expand All @@ -24,8 +24,6 @@ services:
container_name: api
image: ai_chatbot_api
restart: always
environment:
POSTGRES_HOST: postgres
env_file:
- .env
ports:
Expand Down
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ services:
context: ./
image: ai_chatbot_api
restart: always
environment:
POSTGRES_HOST: postgres
env_file:
- .env
expose:
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash

npm run server
yarn run server

0 comments on commit 9b26555

Please sign in to comment.