1
0
Fork 0

mariadb: expose port so npm can access it

This commit is contained in:
Lukáš Kucharczyk 2023-03-28 13:23:57 +02:00
parent 4b952b482c
commit 1612eb217f
Signed by: lukas
SSH Key Fingerprint: SHA256:vMuSwvwAvcT6htVAioMP7rzzwMQNi3roESyhv+nAxeg
2 changed files with 6 additions and 3 deletions

3
.env
View File

@ -79,6 +79,7 @@ SEARXNG_EXTERNAL_PORT=8082
SEARXNG_INTERNAL_PORT=8080 SEARXNG_INTERNAL_PORT=8080
MEDIAWIKI_EXTERNAL_PORT=8083 MEDIAWIKI_EXTERNAL_PORT=8083
MEDIAWIKI_INTERNAL_PORT=8080 MEDIAWIKI_INTERNAL_PORT=8080
MARIADB_PORT=3306 MARIADB_INTERNAL_PORT=3306
MARIADB_EXTERNAL_PORT=3306
PHOTOPRISM_EXTERNAL_PORT=2342 PHOTOPRISM_EXTERNAL_PORT=2342
PHOTOPRISM_INTERNAL_PORT=2342 PHOTOPRISM_INTERNAL_PORT=2342

View File

@ -673,14 +673,14 @@ services:
- DB_MYSQL_HOST=localhost - DB_MYSQL_HOST=localhost
- DB_MYSQL_NAME=npm - DB_MYSQL_NAME=npm
- DB_MYSQL_PASSWORD=npm - DB_MYSQL_PASSWORD=npm
- "DB_MYSQL_PORT=${MARIADB_PORT}" - "DB_MYSQL_PORT=${MARIADB_EXTERNAL_PORT}"
- DB_MYSQL_USER=npm - DB_MYSQL_USER=npm
profiles: profiles:
- infra - infra
- base - base
restart: unless-stopped restart: unless-stopped
photoprism1: photoprism:
container_name: photoprism container_name: photoprism
image: docker.io/photoprism/photoprism image: docker.io/photoprism/photoprism
networks: networks:
@ -706,6 +706,8 @@ services:
networks: networks:
- mariadb - mariadb
- public - public
ports:
- "${MARIADB_EXTERNAL_PORT}:${MARIADB_INTERNAL_PORT}"
volumes: volumes:
- "${DOCKER_STORAGE_PATH}/mariadb:/config" - "${DOCKER_STORAGE_PATH}/mariadb:/config"
restart: unless-stopped restart: unless-stopped