Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Gxaite committed Jun 28, 2024
2 parents b39f2e3 + 76f5981 commit 02cdd6f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker-compose-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
environment:
BOTPRESS_ADMIN_EMAIL: ${BOTPRESS_ADMIN_EMAIL}
BOTPRESS_ADMIN_PASSWORD: ${BOTPRESS_ADMIN_PASSWORD}
DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}
DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_IP_PORT}/${POSTGRES_DB}
depends_on:
- postgres
restart: always
Expand Down
2 changes: 1 addition & 1 deletion docker-compose-server copy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
environment:
BOTPRESS_ADMIN_EMAIL: ${BOTPRESS_ADMIN_EMAIL}
BOTPRESS_ADMIN_PASSWORD: ${BOTPRESS_ADMIN_PASSWORD}
DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}
DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_IP_PORT}/${POSTGRES_DB}
# postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@<SUSTITUIR POR IP>:5432/${POSTGRES_DB}
restart: always
volumes:
Expand Down
3 changes: 2 additions & 1 deletion dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ COPY ./data /botpress/data
ARG POSTGRES_USER
ARG POSTGRES_PASSWORD
ARG POSTGRES_DB
ARG POSTGRES_IP_PORT
ENV BP_PRODUCTION=true
ENV BPFS_STORAGE=database
ENV BP_HTTP_PORT=3000
ENV DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@192.168.3.22:5432/${POSTGRES_DB}
ENV DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_IP_PORT}/${POSTGRES_DB}
# ENV DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}

# Exponha as portas necessárias
Expand Down

0 comments on commit 02cdd6f

Please sign in to comment.