Cannot reach container
chrismast opened this issue · 1 comments
Hi Galexrt,
Just tried to setup the healthchecks container via docker-compose whereas somehow I cannot reach the container, neither by IP:8080 nor by subdomain.domain.com or subdomain.domain.com:8080. Postgres DB connection seems to be ok as I can see connections and the container also seems to start up and not shut down.
Wondering if you could check my docker-compose in case I miss anything?
version: '3'
services:
healthchecks:
image: galexrt/healthchecks:latest
container_name: healthchecks
restart: unless-stopped
ports:
- "8080:80"
volumes:
- /home/folder/healthchecks/data:/data
environment:
DEBUG: "False"
SECERET_KEY: "password123"
USE_PAYMENTS: "False"
REGISTRATION_OPEN: "False"
SITE_ROOT: "https://subdomain.domain.net"
SITE_NAME: "My Healthchecks"
MASTER_BADGE_LABEL: "Mychecks"
PING_ENDPOINT: "https://subdomain.domain.net/ping/"
PING_EMAIL_DOMAIN: "subdomain.domain.net"
DEFAULT_FROM_EMAIL: "email@gmail.com"
DB: "postgres"
DB_HOST: "IP"
DB_PORT: "PORT"
DB_NAME: "DB"
DB_USER: "USER"
DB_PASSWORD: "PW"
EMAIL_HOST: "smtp.gmail.com"
EMAIL_PORT: "587"
EMAIL_HOST_USER: "email@gmail.com"
EMAIL_HOST_PASSWORD: "APP PW"
EMAIL_USE_TLS: "True"
ALLOWED_HOSTS: 'localhost, subdomain.domain.net' (also tried it with "*" and with removing the env variable all together)
SUPERUSER_EMAIL: "email@gmail.com"
SUPERUSER_PASSWORD: "PW"
TELEGRAM_BOT_NAME: "BOTNAME"
TELEGRAM_TOKEN: "BOT KEY"
CONTAINER_PRUNE_INTERVAL: 600
I run various other docker containers with HAProxy etc., but somehow cannot get this one connected.
Thanks!
Solved it myself just now, port assignment was wrong...sorry