Build database image with bundled bootstrap dumps
This commit is contained in:
@@ -26,7 +26,9 @@ services:
|
||||
condition: service_healthy
|
||||
|
||||
db:
|
||||
image: mysql:8.0
|
||||
build:
|
||||
context: .
|
||||
dockerfile: docker/mysql/Dockerfile
|
||||
container_name: spota-db
|
||||
restart: unless-stopped
|
||||
command: --default-authentication-plugin=mysql_native_password --character-set-server=latin1 --collation-server=latin1_swedish_ci
|
||||
@@ -37,8 +39,6 @@ services:
|
||||
MYSQL_DATABASE: ${DB_NAME:-spota_spotadb}
|
||||
volumes:
|
||||
- spota_db_data:/var/lib/mysql
|
||||
- ./docker/mysql-init:/docker-entrypoint-initdb.d:ro
|
||||
- ./spota_db:/spota_db:ro
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "mysqladmin ping -h localhost -uroot -p$${MYSQL_ROOT_PASSWORD}"]
|
||||
interval: 10s
|
||||
|
||||
Reference in New Issue
Block a user