From 056787060980fa6b75130280e23b725105bcc505 Mon Sep 17 00:00:00 2001 From: Siina Mashek Date: Tue, 31 Jan 2023 03:04:40 +0200 Subject: [PATCH] adding bookstack --- bookstack/.env-example | 6 ++++++ bookstack/docker-compose.yml | 36 +++++++++++++++++++++++++++++++++++ prometheus/docker-compose.yml | 2 +- 3 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 bookstack/.env-example create mode 100644 bookstack/docker-compose.yml diff --git a/bookstack/.env-example b/bookstack/.env-example new file mode 100644 index 0000000..3e50289 --- /dev/null +++ b/bookstack/.env-example @@ -0,0 +1,6 @@ +APP_URL=https://some.url +DB_USER=someuser +DB_PASS=somepassword +DB_DATABASE=somedb +MYSQL_ROOT_PASSWORD=somepassword +TZ=Europe/Helsinki diff --git a/bookstack/docker-compose.yml b/bookstack/docker-compose.yml new file mode 100644 index 0000000..4111c8f --- /dev/null +++ b/bookstack/docker-compose.yml @@ -0,0 +1,36 @@ +version: '3.8' +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: ${DB_USER} + DB_PASS: ${DB_PASS} + DB_DATABASE: ${DB_DATABASE} + volumes: + - bookstack:/config + ports: + - 6875:80 + depends_on: + - bookstack_db + boockstack_db: + image: lscr.io/linuxserver/mariadb + container_name: bookstack_db + environment: + PUID: 1000 + PGID: 1000 + MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD} + TZ: ${TZ} + MYSQL_DATABASE: ${DB_DATABASE} + MYSQL_USER: ${DB_USER} + MYSQL_PASS: ${DB_PASS} + volumes: + - bookstack:/config + restart: unless-stopped +volumes: + bookstack: \ No newline at end of file diff --git a/prometheus/docker-compose.yml b/prometheus/docker-compose.yml index e20ee82..23c8019 100644 --- a/prometheus/docker-compose.yml +++ b/prometheus/docker-compose.yml @@ -4,7 +4,7 @@ services: image: prom/prometheus:latest container_name: prometheus volumes: - - prometheus:/etc/prometheus + - ./prometheus:/etc/prometheus restart: unless-stopped ports: - 9090:9090