Merge pull request #1073 from lucastononro/fix-prisma-p1001-dockercompose

Update docker-compose and .env.example
This commit is contained in:
Davidson Gomes 2024-11-21 14:49:10 -03:00 committed by GitHub
commit ee8e937fad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View File

@ -26,7 +26,7 @@ DEL_INSTANCE=false
# Provider: postgresql | mysql # Provider: postgresql | mysql
DATABASE_PROVIDER=postgresql DATABASE_PROVIDER=postgresql
DATABASE_CONNECTION_URI='postgresql://user:pass@localhost:5432/evolution?schema=public' DATABASE_CONNECTION_URI='postgresql://user:pass@postgres:5432/evolution?schema=public'
# Client name for the database connection # Client name for the database connection
# It is used to separate an API installation from another that uses the same database. # It is used to separate an API installation from another that uses the same database.
DATABASE_CONNECTION_CLIENT_NAME=evolution_exchange DATABASE_CONNECTION_CLIENT_NAME=evolution_exchange

View File

@ -34,12 +34,15 @@ services:
image: postgres:15 image: postgres:15
networks: networks:
- evolution-net - evolution-net
command: ["postgres", "-c", "max_connections=1000"] command: ["postgres", "-c", "max_connections=1000", "-c", "listen_addresses=*"]
restart: always restart: always
ports: ports:
- 5432:5432 - 5432:5432
environment: environment:
- POSTGRES_PASSWORD=PASSWORD - POSTGRES_USER=user
- POSTGRES_PASSWORD=pass
- POSTGRES_DB=evolution
- POSTGRES_HOST_AUTH_METHOD=trust
volumes: volumes:
- postgres_data:/var/lib/postgresql/data - postgres_data:/var/lib/postgresql/data
expose: expose: