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

Setup postgres persistent volume in docker-compose correctly #283

Closed
radoslavzeman opened this issue Feb 13, 2025 · 0 comments · Fixed by #284
Closed

Setup postgres persistent volume in docker-compose correctly #283

radoslavzeman opened this issue Feb 13, 2025 · 0 comments · Fixed by #284
Assignees

Comments

@radoslavzeman
Copy link
Contributor

radoslavzeman commented Feb 13, 2025

Should be like this (see the last line), and also postgres folder needs to be in gitignore.

  postgres:
    image: postgres:latest
    environment:
      POSTGRES_USER: strapi
      POSTGRES_PASSWORD: password
      POSTGRES_DB: strapi
      PGPORT: 5432
    expose:
      - '5432'
    ports:
      - '127.0.0.1:5432:5432'
    volumes:
      - ./postgres:/var/lib/postgresql/data
@radoslavzeman radoslavzeman self-assigned this Feb 13, 2025
@radoslavzeman radoslavzeman linked a pull request Feb 13, 2025 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant