Skip to content

Commit a8bc8f4

Browse files
authored
Use MY_DOCKER_IP in database ports
1 parent b6ddd80 commit a8bc8f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ services:
137137
- PGPASSWORD=password
138138
- PGDATABASE=postgis
139139
ports:
140-
- "5439:5432"
140+
- "${MY_DOCKER_IP:-127.0.0.1}:5439:5432"
141141
command: postgres -N 500
142142
volumes:
143143
- ./.pgdata:/var/lib/postgresql/data

0 commit comments

Comments
 (0)