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

Accounts not saved #104

Open
mcules opened this issue Sep 12, 2023 · 1 comment
Open

Accounts not saved #104

mcules opened this issue Sep 12, 2023 · 1 comment

Comments

@mcules
Copy link

mcules commented Sep 12, 2023

Hello,
I wanted to test the docker-compose version.
Now I noticed that user accounts are not saved permanently.
When I shut down the container and start it again, registered accounts are no longer available.

How can I fix the error?

@karatekaneen
Copy link

karatekaneen commented Dec 6, 2023

@mcules I had the same issue. For me it was that the docker volumes was not persisted correctly.

This file works for me at the moment:

version: "3.9"
services:
  mcaptcha:
    image: mcaptcha/mcaptcha:latest
    ports: [7000:7000]
    environment:
      DATABASE_URL: postgres://postgres:password@mcaptcha_postgres:5432/postgres # set password at placeholder
      MCAPTCHA_redis_URL: redis://mcaptcha_redis/
      RUST_LOG: debug
      PORT: 7000
    depends_on: [mcaptcha_postgres, mcaptcha_redis]
  mcaptcha_postgres:
    ports: [5432:5432]
    image: postgres:13.2
    volumes: [./tmp:/var/lib/postgresql/data] # <--- THIS is what i changed
    environment:
      POSTGRES_PASSWORD: password # change password
      PGDATA: /var/lib/postgresql/data/mcaptcha/data/
  mcaptcha_redis:
    image: mcaptcha/cache:latest

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