32 lines
722 B
YAML
32 lines
722 B
YAML
version: '3'
|
|
|
|
#
|
|
# Docker Compose configuration for MariaDB
|
|
#
|
|
# To start the MariaDB instance and import the Bible data: docker-compose up
|
|
#
|
|
# To connect to the database from the host (presuming you have mysql-client or
|
|
# mariadb-client installed), use a command like this:
|
|
# mysql -h 127.0.0.1 -u root -p bible
|
|
#
|
|
# More information about Docker Compose: https://docs.docker.com/compose/
|
|
#
|
|
|
|
services:
|
|
bibledb:
|
|
image: mariadb:10.5
|
|
volumes:
|
|
- ./bible_databases/sql:/docker-entrypoint-initdb.d
|
|
env_file: ['.env']
|
|
restart: always
|
|
|
|
biblebot:
|
|
build:
|
|
context: .
|
|
env_file: ['.env']
|
|
depends_on:
|
|
- bibledb
|
|
volumes:
|
|
- ./lastrun.txt:/lastrun.txt
|
|
# restart: unless-stopped
|