Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Submit to Coolify #40

Open
AlejandroAkbal opened this issue Aug 17, 2024 · 3 comments
Open

Submit to Coolify #40

AlejandroAkbal opened this issue Aug 17, 2024 · 3 comments

Comments

@AlejandroAkbal
Copy link

Coolify has 60k users that could easily enjoy a one click install of this wonderful project

image

You can create a template for them to install with one click following this docs: https://coolify.io/docs/knowledge-base/add-a-service

@maelgangloff
Copy link
Owner

Thanks but it would require too much code restructuring to support these new environment variables and would require adding more configuration.
I'll leave this issue open if anyone wants to do it.

@AlejandroAkbal
Copy link
Author

AlejandroAkbal commented Aug 17, 2024

There is not new environment variables, Coolify does not require anything special, its just docker compose files, special env vars are a plus for automatic configuration, but are not required

See: https://github.com/coollabsio/coolify/blob/main/templates/compose/n8n.yaml

@AlejandroAkbal
Copy link
Author

AlejandroAkbal commented Aug 25, 2024

WIP version:

# documentation: https://github.com/maelgangloff/domain-watchdog
# slogan: Monitor's domains and purchases them when available.
# tags: domain,watchdog,monitoring,management
# logo: svgs/domain-watchdog.svg
# port: 8080

services:
    domainwatchdog:
        image: maelgangloff/domain-watchdog:latest
        environment:
            SERVER_NAME: http://${SERVER_NAME:-localhost}
            DATABASE_URL: postgresql://${SERVICE_USER_POSTGRES}:${SERVICE_PASSWORD_POSTGRES}@database:5432/domainwatchdog?serverVersion=${POSTGRES_VERSION:-16}&charset=utf8
            APP_SECRET: ${SERVICE_BASE64_DOMAINWATCHDOG}
            REGISTRATION_ENABLED: ${REGISTRATION_ENABLED:-true}
            REGISTRATION_VERIFY_EMAIL: ${REGISTRATION_VERIFY_EMAIL:-false}
            LIMITED_FEATURES: ${LIMITED_FEATURES:-false}
            LIMIT_MAX_WATCHLIST: ${LIMIT_MAX_WATCHLIST:-0}
            LIMIT_MAX_WATCHLIST_DOMAINS: ${LIMIT_MAX_WATCHLIST_DOMAINS:-0}
            LIMIT_MAX_WATCHLIST_WEBHOOKS: ${LIMIT_MAX_WATCHLIST_WEBHOOKS:-0}
            MAILER_DSN: ${MAILER_DSN:-null://null}
        volumes:
            - caddy_data:/data
            - caddy_config:/config
            - domainwatchdog_content:/app/public/content

    php-worker:
        image: maelgangloff/domain-watchdog:latest
        restart: always
        command: php /app/bin/console messenger:consume --all --time-limit=3600 -vvv
        environment:
            DATABASE_URL: postgresql://${SERVICE_USER_POSTGRES}:${SERVICE_PASSWORD_POSTGRES}@database:5432/domainwatchdog?serverVersion=${POSTGRES_VERSION:-16}&charset=utf8
            APP_SECRET: ${SERVICE_BASE64_DOMAINWATCHDOG}
            MAILER_DSN: ${MAILER_DSN:-null://null}
        healthcheck:
            disable: true

    database:
        image: postgres:${POSTGRES_VERSION:-16}-alpine
        environment:
            POSTGRES_DB: domainwatchdog
            POSTGRES_PASSWORD: ${SERVICE_PASSWORD_POSTGRES}
            POSTGRES_USER: ${SERVICE_USER_POSTGRES}
        healthcheck:
            test: [ "CMD", "pg_isready", "-d", "domainwatchdog", "-U", "${SERVICE_USER_POSTGRES}" ]
            timeout: 5s
            retries: 5
            start_period: 60s
        volumes:
            - database_data:/var/lib/postgresql/data:rw
            

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants