mariadb: expose port so npm can access it
This commit is contained in:
parent
4b952b482c
commit
1612eb217f
3
.env
3
.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
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue