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

Can not login with admin@admin.com and foobar #271

Open
BruceHan98 opened this issue Mar 30, 2023 · 3 comments
Open

Can not login with admin@admin.com and foobar #271

BruceHan98 opened this issue Mar 30, 2023 · 3 comments

Comments

@BruceHan98
Copy link

I deploy black candy with docker-compose up, but can not login with admin@admin.com and foobar. I don't know where the problem is.

@aidewoode
Copy link
Member

What is version of Black Candy that you deployed? And also please post content of your docker-compose.yml file.

@BruceHan98
Copy link
Author

I just use the following docker-compose.yml to deploy black candy:

version: '3.4'
services:
  app: &app_base
    container_name: 'blackcandy_app'
    image: blackcandy/blackcandy
    volumes:
      - ./log:/app/log
      - /media_data:/media_data
      - production_uploads_data:/app/public/uploads
    environment:
      DB_HOST: postgres
      DB_USER: postgres
      REDIS_CACHE_URL: redis://redis:6379/1
      REDIS_SIDEKIQ_URL: redis://redis:6379/2
      MEDIA_PATH: /media_data
    depends_on:
      - postgres
      - redis
  postgres:
    container_name: 'blackcandy_postgres'
    image: postgres:11.1-alpine
    volumes:
      - production_db_data:/var/lib/postgresql/data
  redis:
    container_name: 'blackcandy_redis'
    image: redis:4.0-alpine
    volumes:
      - production_redis_data:/data
  worker:
    container_name: 'blackcandy_worker'
    <<: *app_base
    command: bundle exec sidekiq
  web:
    container_name: 'blackcandy_web'
    <<: *app_base
    depends_on:
      - app
      - worker
    ports:
      - 8000:80
    command: nginx -g 'pid /tmp/nginx.pid; daemon off;'
volumes:
  production_db_data:
  production_redis_data:
  production_uploads_data:

@aidewoode
Copy link
Member

I have tested on the latest stable version of black candy. I didn't encounter the issue. Do you have any error log? Or you can start all service not in detached mode like this docker-compose up to see if there is any error log on startup.

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