Skip to content
This repository was archived by the owner on Jun 27, 2020. It is now read-only.

Add a dockerfile #37

Merged
merged 2 commits into from
Feb 26, 2018
Merged

Add a dockerfile #37

merged 2 commits into from
Feb 26, 2018

Conversation

mathieui
Copy link
Contributor

It would be nice to have it available on the Docker hub as an automated build, too.

I have pushed the resulting docker image to my personal repo on docker hub to test and deploy BookBrowser for the meantime.

I run it using docker stack and traefik:

version: '3.3'

services:
  bookbrowser:
    image: mathieui/bookbrowser:latest
    networks:
      - default
      - web
    ports:
      - "8090"
    volumes:
      - /data/books:/books
    labels:
      - "traefik.backend=bookbrowser-app"
      - "traefik.docker.network=web"
      - "traefik.frontend.rule=Host:books.example.com"
      - "traefik.enable=true"
      - "traefik.port=8090"
      - "traefik.default.protocol=http"
      - "traefik.frontend.auth.basic=<user:password htpasswd payload>"

networks:
  web:
    external: true

@pgaskin
Copy link
Owner

pgaskin commented Feb 22, 2018

Thanks for the contribution! I'll review it later this week when I have more time.

@pgaskin
Copy link
Owner

pgaskin commented Feb 26, 2018

Looks good. Thanks!

P.S. I'll add this to the release script sometime soon.

@pgaskin pgaskin changed the title Add a simple dockerfile to have an image ready to run Add a dockerfile Feb 26, 2018
@pgaskin pgaskin merged commit c2c71a9 into pgaskin:master Feb 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants