GithubHelp home page GithubHelp logo

Comments (3)

mmolitor87 avatar mmolitor87 commented on May 27, 2024

Actually, even with the FLATNOTES_PORT set it still fails the healthcheck. http://ipaddress:port/health says "OK".

docker exec -it flatnotes sh
# curl -f http://localhost:${FLATNOTES_PORT}/health || exit 1
Returns: "OK"

docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
4cc488aba7c4 dullage/flatnotes:latest "/entrypoint.sh" 6 minutes ago Up 5 minutes (unhealthy) 8080/tcp, 0.0.0.0:9080->9080/tcp, :::9080->9080/tcp flatnotes

name: flatnotes
services:
    flatnotes:
        container_name: flatnotes
        image: dullage/flatnotes:latest
        environment:
            PUID: 1000
            PGID: 1000
            FLATNOTES_AUTH_TYPE: password
            FLATNOTES_USERNAME: lolusername
            FLATNOTES_PASSWORD: hunter2
            FLATNOTES_SECRET_KEY: hunter2
            FLATNOTES_PORT: 9080
        volumes:
            - /mnt/docker/flatnotes/data:/data
            # Optional. Allows you to save the search index in a different location: 
            # - "./index:/data/.flatnotes"
        ports:
            - 9080:9080
        restart: unless-stopped

from flatnotes.

dullage avatar dullage commented on May 27, 2024

A default value for this new variable is set in the image so should be ok (unless you're using Synology where weird things seem to be happening).

This said, I accidentally pushed an image early where the healthcheck.sh file had the wrong line endings. Maybe you have this build? Can you try pulling the image again to see if that fixes it?

from flatnotes.

mmolitor87 avatar mmolitor87 commented on May 27, 2024

Confirmed working after re-pull. Thanks so much!

from flatnotes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.