From 1612eb217f252ed78a1f73d5137d90ce8a1b7fa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Tue, 28 Mar 2023 13:23:57 +0200 Subject: [PATCH] mariadb: expose port so npm can access it --- .env | 3 ++- docker-compose.yml | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.env b/.env index 7e03386..d6da41d 100644 --- a/.env +++ b/.env @@ -79,6 +79,7 @@ SEARXNG_EXTERNAL_PORT=8082 SEARXNG_INTERNAL_PORT=8080 MEDIAWIKI_EXTERNAL_PORT=8083 MEDIAWIKI_INTERNAL_PORT=8080 -MARIADB_PORT=3306 +MARIADB_INTERNAL_PORT=3306 +MARIADB_EXTERNAL_PORT=3306 PHOTOPRISM_EXTERNAL_PORT=2342 PHOTOPRISM_INTERNAL_PORT=2342 \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index fe0c032..0a6ced3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -673,14 +673,14 @@ services: - DB_MYSQL_HOST=localhost - DB_MYSQL_NAME=npm - DB_MYSQL_PASSWORD=npm - - "DB_MYSQL_PORT=${MARIADB_PORT}" + - "DB_MYSQL_PORT=${MARIADB_EXTERNAL_PORT}" - DB_MYSQL_USER=npm profiles: - infra - base restart: unless-stopped - photoprism1: + photoprism: container_name: photoprism image: docker.io/photoprism/photoprism networks: @@ -706,6 +706,8 @@ services: networks: - mariadb - public + ports: + - "${MARIADB_EXTERNAL_PORT}:${MARIADB_INTERNAL_PORT}" volumes: - "${DOCKER_STORAGE_PATH}/mariadb:/config" restart: unless-stopped