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

Support for PostgreSQL #35

Open
steinbrueckri opened this issue Oct 22, 2021 · 3 comments · May be fixed by #36
Open

Support for PostgreSQL #35

steinbrueckri opened this issue Oct 22, 2021 · 3 comments · May be fixed by #36
Assignees

Comments

@steinbrueckri
Copy link

No description provided.

@macno macno linked a pull request Oct 23, 2021 that will close this issue
@macno macno self-assigned this Oct 23, 2021
@macno
Copy link
Contributor

macno commented Oct 23, 2021

Hi @steinbrueckri ! Thanks for your interest in theo!
I've been able to add the support for PostgreSQL in a testing branch, would you like to test a beta version? I can build and push an image

@steinbrueckri
Copy link
Author

@macno Thx for the feedback, yes of cause. I'm very interested in the project and happy to help you.

@macno
Copy link
Contributor

macno commented Oct 23, 2021

@steinbrueckri here we are:

docker pull macno77/theo:1.4.0-beta.0-postgres-redis

all you need is to set DB_ENGINE=postgres

these is a simple example using docker-compose to start testing:

version: '3.1'

services:
  db:
    image: postgres:14
    environment:
      POSTGRES_DB: ${POSTGRES_DB}
      POSTGRES_USER: ${POSTGRES_USER}
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
  cache:
    image: redis:6
  theo:
    image: macno77/theo:1.4.0-beta.0-postgres-redis
    environment:
      DB_ENGINE: postgres
      DB_HOST: db
      DB_USER: ${POSTGRES_USER}
      DB_PASSWORD: ${POSTGRES_PASSWORD}
      DB_NAME: ${POSTGRES_DB}
      ADMIN_TOKEN: ${ADMIN_TOKEN}
      CLIENT_TOKENS: ${CLIENT_TOKENS}
      CACHE_ENABLED: redis
      CACHE_URI: redis://cache:6379
      DB_CONN_MAX_RETRY: 30
    ports:
      - 9100:9100
    depends_on:
      - cache
      - db

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.

2 participants