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

Docker setup doesn't work and gives all Cachet config pages in one page #416

Open
AIndoria opened this issue Apr 1, 2022 · 2 comments
Open

Comments

@AIndoria
Copy link

AIndoria commented Apr 1, 2022

Essentially, this, I have gotten this after multiple reinstalls:

image

Here's my docker-compose file:

version: "3"
 
services:
  postgres:
    image: postgres:12-alpine
    volumes:
      - /var/lib/postgresql/data
    environment:
      - POSTGRES_USER=postgres
      - POSTGRES_PASSWORD=833d4aa3d852c583
    restart: always
  cachet:
    image: cachethq/docker:latest
    ports:
      - 8787:8000
    links:
      - postgres:postgres
    environment:
      - DB_DRIVER=pgsql
      - DB_HOST=postgres
      - DB_PORT=5432
      - DB_DATABASE=postgres
      - DB_USERNAME=postgres
      - DB_PASSWORD=833d4aa3d852c583
      - DB_PREFIX=chq_
      - APP_KEY=base64:UWLlBazkwP3z9G7a4Qb/Xkx4Q3FNSVhv0ClqBppPggo=
      - APP_LOG=errorlog
      - APP_ENV=${APP_ENV:-production}
      - APP_DEBUG=false
      - DEBUG=false
    depends_on:
      - postgres
    restart: on-failure

@esseti
Copy link

esseti commented May 5, 2022

most likely cachet js and css are still served to the localhost:8000 , but your entry point is 8787 . can you map it to 8000?
(or having nginx in front with something like this)

server {
  listen 80;
  # the servername
  server_name _;
  location / {
    proxy_pass http://localhost:8000/;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
  }
}

@AIndoria
Copy link
Author

most likely cachet js and css are still served to the localhost:8000 , but your entry point is 8787 . can you map it to 8000?

Hm, what happens if I already have services being served on :8000?

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