add SqLite Data Source when the database file is in Docker volume

已回答

Hello, everyone.

My project uses a volume to store an SQLite database file:

version: "3.9"
services:
numbot:
build:
context: .
ports:
- "8080:8080"
volumes:
- numbot_db:/opt/numbot_db # SQLite database file numbot.sq3 located here in the container
volumes:
numbot_db:

Can I add this file as a Data Source? The host machine is Windows 10, and the volume is located on:

\\wsl$\docker-desktop-data\version-pack-data\community\docker\volumes\numbot_numbot_db\_data

But when I try to add it, it looks like IntelliJ cannot understand this type of path and simply ignore it.

0

It's known issue unfortunately. As a workaround please try to mount the db folder to some local one.

1

请先登录再写评论。