Skip to content

Commit ee8e937

Browse files
Merge pull request #1073 from lucastononro/fix-prisma-p1001-dockercompose
Update docker-compose and .env.example
2 parents d5a7e03 + b7e15be commit ee8e937

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ DEL_INSTANCE=false
2626

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

docker-compose.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,15 @@ services:
3434
image: postgres:15
3535
networks:
3636
- evolution-net
37-
command: ["postgres", "-c", "max_connections=1000"]
37+
command: ["postgres", "-c", "max_connections=1000", "-c", "listen_addresses=*"]
3838
restart: always
3939
ports:
4040
- 5432:5432
4141
environment:
42-
- POSTGRES_PASSWORD=PASSWORD
42+
- POSTGRES_USER=user
43+
- POSTGRES_PASSWORD=pass
44+
- POSTGRES_DB=evolution
45+
- POSTGRES_HOST_AUTH_METHOD=trust
4346
volumes:
4447
- postgres_data:/var/lib/postgresql/data
4548
expose:

0 commit comments

Comments
 (0)