add localhost to container port bindings

This commit is contained in:
Christoph Kluge 2021-06-10 16:25:21 +02:00
parent 3cf7bfca82
commit 3f9265bb7e

View File

@ -17,7 +17,7 @@ services:
image: influxdb image: influxdb
command: ["--reporting-disabled"] command: ["--reporting-disabled"]
ports: ports:
- "${INFLUXDB_PORT}:8086" - "127.0.0.1:${INFLUXDB_PORT}:8086"
environment: environment:
DOCKER_INFLUXDB_INIT_MODE: setup DOCKER_INFLUXDB_INIT_MODE: setup
DOCKER_INFLUXDB_INIT_USERNAME: symfony DOCKER_INFLUXDB_INIT_USERNAME: symfony
@ -58,7 +58,7 @@ services:
- PMA_USER=root - PMA_USER=root
- PMA_PASSWORD=${MYSQL_ROOT_PASSWORD} - PMA_PASSWORD=${MYSQL_ROOT_PASSWORD}
ports: ports:
- "${PHPMYADMIN_PORT}:80" - "127.0.0.1:${PHPMYADMIN_PORT}:80"
restart: always restart: always
nginx: nginx:
@ -70,7 +70,7 @@ services:
MYSQL_PASSWORD: ${MYSQL_PASSWORD} MYSQL_PASSWORD: ${MYSQL_PASSWORD}
INFLUXDB_PASSWORD: ${INFLUXDB_PASSWORD} INFLUXDB_PASSWORD: ${INFLUXDB_PASSWORD}
ports: ports:
- "${NGINX_PORT}:80" - "127.0.0.1:${NGINX_PORT}:80"
depends_on: depends_on:
- php - php
environment: environment: