Can't register user #14

Closed
opened 2026-02-04 16:32:05 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @ilkersigirci on GitHub (Feb 22, 2022).

I have set up everything and running without error codes in docker, but when I do curl request to server I got no response. Here is my docker compose file

  redis:
    container_name: immich_redis
    image: redis:6.2
    networks:
      - internal

  database:
    container_name: immich_postgres
    image: postgres:14
    # env_file:
    #   - .env
    networks:
      - internal
    ports:
      - 5432:5432
    environment:
      POSTGRES_PASSWORD: immich
      POSTGRES_USER: immich
      POSTGRES_DB: immich
      PG_DATA: /var/lib/postgresql/data
    volumes:
      - pgdata:/var/lib/postgresql/data

  immich_server:
    container_name: immich_server
    image: altran1502/immich-server:latest # immich-server-dev:1.0.0
    # build:
    #   context: ../server
    #   target: development
    #   dockerfile: ../server/Dockerfile
    # entrypoint: ["/bin/sh", "./entrypoint.sh"]
    depends_on:
      - redis
      - database
    networks:
      - internal
    expose: 
      - "3000"
    ports:
      - 2283:80
      - 2284:443
    volumes:
      - $DOCKERDIR/appdata/immich/Upload:/usr/src/app/upload
      - /usr/src/app/node_modules
    environment:
      DB_USERNAME: immich
      DB_PASSWORD: immich
      DB_DATABASE_NAME: immich
      UPLOAD_LOCATION: $DOCKERDIR/appdata/immich/Upload
      JWT_SECRET: "test"

volumes:
  pgdata:
Originally created by @ilkersigirci on GitHub (Feb 22, 2022). I have set up everything and running without error codes in docker, but when I do curl request to server I got no response. Here is my docker compose file ```dockerfile redis: container_name: immich_redis image: redis:6.2 networks: - internal database: container_name: immich_postgres image: postgres:14 # env_file: # - .env networks: - internal ports: - 5432:5432 environment: POSTGRES_PASSWORD: immich POSTGRES_USER: immich POSTGRES_DB: immich PG_DATA: /var/lib/postgresql/data volumes: - pgdata:/var/lib/postgresql/data immich_server: container_name: immich_server image: altran1502/immich-server:latest # immich-server-dev:1.0.0 # build: # context: ../server # target: development # dockerfile: ../server/Dockerfile # entrypoint: ["/bin/sh", "./entrypoint.sh"] depends_on: - redis - database networks: - internal expose: - "3000" ports: - 2283:80 - 2284:443 volumes: - $DOCKERDIR/appdata/immich/Upload:/usr/src/app/upload - /usr/src/app/node_modules environment: DB_USERNAME: immich DB_PASSWORD: immich DB_DATABASE_NAME: immich UPLOAD_LOCATION: $DOCKERDIR/appdata/immich/Upload JWT_SECRET: "test" volumes: pgdata: ```
Author
Owner

@alextran1502 commented on GitHub (Feb 22, 2022):

Hi @ilkersigirci, did you pull from the latest master branch? Can you run docker-compose up without daemon mode and check the log? what is your curl command look like?

@alextran1502 commented on GitHub (Feb 22, 2022): Hi @ilkersigirci, did you pull from the latest master branch? Can you run `docker-compose up` without daemon mode and check the log? what is your curl command look like?
Author
Owner

@alextran1502 commented on GitHub (Feb 22, 2022):

In your port section of immich_server can you bind 2283:3000 instead of 2283:80? port 80 was for nginx :) I think that is why you cannot communicate to the server

@alextran1502 commented on GitHub (Feb 22, 2022): In your `port` section of `immich_server` can you bind `2283:3000` instead of `2283:80`? port 80 was for `nginx` :) I think that is why you cannot communicate to the server
Author
Owner

@ilkersigirci commented on GitHub (Feb 22, 2022):

Oh you are right. I should have changed the port :) Thank you, great work man

@ilkersigirci commented on GitHub (Feb 22, 2022): Oh you are right. I should have changed the port :) Thank you, great work man
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#14