docker volumes #232

This commit is contained in:
Jan Prochazka 2022-02-24 12:59:45 +01:00
parent 3d395a0018
commit 6a183a6263
3 changed files with 21 additions and 9 deletions

View File

@ -3,16 +3,26 @@
version: "3"
services:
dbgate:
# build: docker
image: dbgate/dbgate:beta
build: docker
# image: dbgate/dbgate:beta
restart: always
ports:
- 3100:3000
volumes:
- /home/jena/test/chinook:/mnt/sqt
environment:
CONNECTIONS: sqlite
# volumes:
# - /home/jena/dbgate-data:/root/dbgate-data
LABEL_sqlite: sqt
FILE_sqlite: /mnt/sqt/Chinook.db
ENGINE_sqlite: sqlite@dbgate-plugin-sqlite
volumes:
- dbgate-data:/root/dbgate-data
# volumes:
# - /home/jena/test/chinook:/mnt/sqt
# environment:
# CONNECTIONS: sqlite
# LABEL_sqlite: sqt
# FILE_sqlite: /mnt/sqt/Chinook.db
# ENGINE_sqlite: sqlite@dbgate-plugin-sqlite
volumes:
dbgate-data:
driver: local

View File

@ -6,4 +6,5 @@ COPY . .
WORKDIR /home/dbgate-docker
EXPOSE 3000
VOLUME /root/dbgate-data
CMD node bundle.js

View File

@ -6,4 +6,5 @@ COPY . .
WORKDIR /home/dbgate-docker
EXPOSE 3000
VOLUME /root/dbgate-data
CMD node bundle.js