Docker
Docker copied to clipboard
Docker setup doesn't work and gives all Cachet config pages in one page
Essentially, this, I have gotten this after multiple reinstalls:

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
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;
}
}
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?