services: bookstack: image: lscr.io/linuxserver/bookstack container_name: bookstack environment: - PUID=1000 - PGID=1000 - TZ=${TZ} - APP_URL=https://docs.${DOMAIN} - DB_HOST=bookstack_db - DB_PORT=3306 - DB_USER=bookstack - DB_PASS=${DBPASS} - DB_DATABASE=bookstackapp - VIRTUAL_HOST=docs.${DOMAIN} - LETSENCRYPT_HOST=docs.${DOMAIN} - LETSENCRYPT_EMAIL=${EMAIL} volumes: - ./config:/config ports: - 6875:80 expose: - "6875" restart: unless-stopped depends_on: - bookstack_db bookstack_db: image: lscr.io/linuxserver/mariadb container_name: bookstack_db environment: - PUID=1000 - PGID=1000 - TZ=${TZ} - MYSQL_ROOT_PASSWORD=${DBPASS} - MYSQL_DATABASE=bookstackapp - MYSQL_USER=bookstack - MYSQL_PASSWORD=${DBPASS} volumes: - ./db:/config restart: unless-stopped networks: default: name: nginx-proxy external: true