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

Add notes on how to use with Postgres #14

Open
joelclermont opened this issue May 1, 2023 · 0 comments
Open

Add notes on how to use with Postgres #14

joelclermont opened this issue May 1, 2023 · 0 comments

Comments

@joelclermont
Copy link
Member

php docker file requires apk libpq-dev and docker-php-ext pdo_pgsql

changes to Docker file

postgres:
    container_name: "${COMPOSE_PROJECT_NAME}-postgres"
    image: postgres:15.2-alpine
    volumes:
      - postgres-data:/var/lib/postgresql/data
    environment:
      - POSTGRES_PASSWORD=secret
      - POSTGRES_USER=postgres
      - POSTGRES_DB=app
    ports:
      - "${DOCKER_POSTGRES_LOCAL_PORT}:5432"
    restart: unless-stopped

postgres-test:
    container_name: "${COMPOSE_PROJECT_NAME}-postgres-test"
    image: postgres:15.2-alpine
    volumes:
      - postgres-test-data:/var/lib/postgresql/data
    environment:
      - POSTGRES_PASSWORD=secret
      - POSTGRES_USER=postgres
      - POSTGRES_DB=app-test
    restart: unless-stopped

volumes:
  postgres-data:
  postgres-test-data:
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