diff --git a/Docker/bookstack/.env b/Docker/bookstack/.env new file mode 100644 index 0000000..ca86270 --- /dev/null +++ b/Docker/bookstack/.env @@ -0,0 +1,17 @@ +# Password for bookstack MySQL user +DB_PASS= + +# Password for root MySQL user +DB_ROOT_PASS= + +# Directory, where the bookstack itself will store the files +CONFIG_PATH=/path/to/bookstack/config + +# Directory, where MySQL data will be stored +DB_DATA=/path/to/db/data + +# Your timezone +TZ=Europe/Warsaw + +# The IP:port or URL your application will be accessed on (ie. http://192.168.1.1:6875 or https://bookstack.mydomain.com +APP_URL=https://bookstack.example.com \ No newline at end of file diff --git a/Docker/bookstack/compose.yaml b/Docker/bookstack/compose.yaml new file mode 100644 index 0000000..ca178a7 --- /dev/null +++ b/Docker/bookstack/compose.yaml @@ -0,0 +1,40 @@ +--- +version: "2" +services: + bookstack: + image: lscr.io/linuxserver/bookstack + container_name: bookstack + environment: + - PUID=1000 + - PGID=1000 + - APP_URL=${APP_URL} + - DB_HOST=bookstack_db + - DB_PORT=3306 + - DB_USER=bookstack + - DB_PASS=${DB_PASS} + - DB_DATABASE=bookstackapp + volumes: + - ${CONFIG_PATH}:/config + ports: + - 6875:80 + restart: unless-stopped + env_file: + - stack.env + depends_on: + - bookstack_db + bookstack_db: + image: lscr.io/linuxserver/mariadb + container_name: bookstack_db + environment: + - PUID=1000 + - PGID=1000 + - MYSQL_ROOT_PASSWORD=${DB_ROOT_PASS} + - TZ=${TZ} + - MYSQL_DATABASE=bookstackapp + - MYSQL_USER=bookstack + - MYSQL_PASSWORD=${DB_PASS} + volumes: + - ${DB_DATA}:/config + restart: unless-stopped + env_file: + - stack.env \ No newline at end of file