Develop: Add named volume for mariadb test server in compose.yaml #3168

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2024-12-06 09:34:46 +01:00
parent e6490c1d93
commit a58215d8d8

View File

@@ -143,6 +143,7 @@ services:
ports:
- "4001:4001" # database port (host:container)
volumes:
- "mariadb:/var/lib/mysql"
- "./scripts/sql/mariadb-init.sql:/docker-entrypoint-initdb.d/init.sql"
environment:
MARIADB_AUTO_UPGRADE: "1"
@@ -267,6 +268,8 @@ services:
volumes:
go-mod:
driver: local
mariadb:
driver: local
## Create shared "photoprism-develop" network for connecting with services in other compose.yaml files
networks: