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

Installation Problem #423

Open
alfi4000 opened this issue Nov 9, 2024 · 0 comments
Open

Installation Problem #423

alfi4000 opened this issue Nov 9, 2024 · 0 comments

Comments

@alfi4000
Copy link

alfi4000 commented Nov 9, 2024

For installation issues, please visit our https://discord.postiz.com for assistance.

after installing and trying creating account safari and chrome the same registration not working can't reach api! I also tried login but doesn't work either!:
Console:
Screenshot 2024-11-08 at 21 29 04

Is maybe a different container causing the issue? I am still quiet new to docker!:

Screenshot 2024-11-08 at 21 30 15

my docker-compose.yml:

services:
postiz:
image: ghcr.io/gitroomhq/postiz-app:latest
container_name: postiz
restart: always
environment:
# You must change these. Replace postiz.your-server.com with your DNS name - what your web browser sees.
MAIN_URL: "http://192.168.50.235"
FRONTEND_URL: "http://192.168.50.235"
NEXT_PUBLIC_BACKEND_URL: "http://192.168.50.235/api"
JWT_SECRET: "uwbdcibsa@ew8i24t"

  # These defaults are probably fine, but if you change your user/password, update it in the
  # postiz-postgres or postiz-redis services below.
  DATABASE_URL: "postgresql://postiz-user:postiz-password@postiz-postgres:5432/postiz-db-local"
  REDIS_URL: "redis://postiz-redis:6379"
  BACKEND_INTERNAL_URL: "http://localhost:3000"
  IS_GENERAL: "true" # Required for self-hosting.
  # The container images are pre-configured to use /uploads for file storage.
  # You probably should not change this unless you have a really good reason!
  STORAGE_PROVIDER: "local"
  UPLOAD_DIRECTORY: "/uploads"
  NEXT_PUBLIC_UPLOAD_DIRECTORY: "/uploads"
volumes:
  - postiz-config:/config/
  - postiz-uploads:/uploads/
ports:
  - 5000:5000
networks:
  - postiz-network
depends_on:
  postiz-postgres:
    condition: service_healthy
  postiz-redis:
    condition: service_healthy

postiz-postgres:
image: postgres:17-alpine
container_name: postiz-postgres
restart: always
environment:
POSTGRES_PASSWORD: postiz-password
POSTGRES_USER: postiz-user
POSTGRES_DB: postiz-db-local
volumes:
- postgres-volume:/var/lib/postgresql/data
networks:
- postiz-network
healthcheck:
test: pg_isready -U postiz-user -d postiz-db-local
interval: 10s
timeout: 3s
retries: 3
postiz-redis:
image: redis:7.2
container_name: postiz-redis
restart: always
healthcheck:
test: redis-cli ping
interval: 10s
timeout: 3s
retries: 3
volumes:
- postiz-redis-data:/data
networks:
- postiz-network

volumes:
postgres-volume:
external: false

postiz-redis-data:
external: false

postiz-config:
external: false

postiz-uploads:
external: false

networks:
postiz-network:
external: false

I think I know the issue its ssl!
But I don't know how to configure traffic could someone help me I am running on ip adress not domain! Chatgpt what I would normally use tho get it to work just cant solve the issue because I get 404 page not found with chatgpt docker-compose.yml!

This is fixed by chatgpt but I am getting on the adress: 192.168.50.235:8443 404 page not found!:

version: '3.8'
services:
postiz:
image: ghcr.io/gitroomhq/postiz-app:latest
container_name: postiz
restart: always
environment:
MAIN_URL: "https://192.168.50.235"
FRONTEND_URL: "https://192.168.50.235"
NEXT_PUBLIC_BACKEND_URL: "https://192.168.50.235/api"
JWT_SECRET: "r@ohiouhg3g34g"
DATABASE_URL: "postgresql://postiz-user:postiz-password@postiz-postgres:5432/postiz-db-local"
REDIS_URL: "redis://postiz-redis:6379"
BACKEND_INTERNAL_URL: "http://localhost:3000"
IS_GENERAL: "true"
STORAGE_PROVIDER: "local"
UPLOAD_DIRECTORY: "/uploads"
NEXT_PUBLIC_UPLOAD_DIRECTORY: "/uploads"
volumes:
- postiz-config:/config/
- postiz-uploads:/uploads/
ports:
- 5000:5000
networks:
- postiz-network
depends_on:
postiz-postgres:
condition: service_healthy
postiz-redis:
condition: service_healthy
labels:
- "traefik.http.routers.postiz.rule=Host(192.168.50.235)"
- "traefik.http.services.postiz.loadbalancer.server.port=5000"
- "traefik.http.routers.postiz.entrypoints=websecure"
- "traefik.http.routers.postiz.tls=true"

postiz-postgres:
image: postgres:17-alpine
container_name: postiz-postgres
restart: always
environment:
POSTGRES_PASSWORD: postiz-password
POSTGRES_USER: postiz-user
POSTGRES_DB: postiz-db-local
volumes:
- postgres-volume:/var/lib/postgresql/data
networks:
- postiz-network
healthcheck:
test: pg_isready -U postiz-user -d postiz-db-local
interval: 10s
timeout: 3s
retries: 3

postiz-redis:
image: redis:7.2
container_name: postiz-redis
restart: always
healthcheck:
test: redis-cli ping
interval: 10s
timeout: 3s
retries: 3
volumes:
- postiz-redis-data:/data
networks:
- postiz-network

traefik:
image: "traefik:v2.9"
container_name: "traefik"
command:
- "--api.insecure=true"
- "--api.dashboard=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.websecure.address=:443"
ports:
- "8443:443"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
networks:
- postiz-network

volumes:
postgres-volume:
external: false
postiz-redis-data:
external: false
postiz-config:
external: false
postiz-uploads:
external: false

networks:
postiz-network:
external: false

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

1 participant