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

[question] use external postgres server in production #113

Closed
ygol opened this issue Sep 15, 2020 · 5 comments
Closed

[question] use external postgres server in production #113

ygol opened this issue Sep 15, 2020 · 5 comments
Labels
bug Something isn't working hacktoberfest Good for newcomers help wanted Extra attention is needed

Comments

@ygol
Copy link

ygol commented Sep 15, 2020

Hello,

Where/how may I configure the use of an external database but only for production?
thank you

@yajo
Copy link
Contributor

yajo commented Sep 15, 2020

Just use this option. Then, later, configure the prod.yaml environment according to your needs:

I will use an external PostgreSQL server: null

@yajo yajo closed this as completed Sep 15, 2020
@ygol
Copy link
Author

ygol commented Sep 15, 2020

Tnx for feedback Yajo but using this option generate errors:

  • in invoke img-pull:
    Pulling db ... error

  • in invoke resetdb and invoke start:

ERROR: manifest for tecnativa/postgres-autoconf:None-alpine not found: manifest unknown: manifest unknown
Pulling db (tecnativa/postgres-autoconf:None-alpine)...
ERROR: manifest for tecnativa/postgres-autoconf:None-alpine not found: manifest unknown: manifest unknown

@yajo yajo reopened this Sep 15, 2020
@yajo yajo added bug Something isn't working hacktoberfest Good for newcomers help wanted Extra attention is needed labels Sep 15, 2020
@joao-p-marques
Copy link
Contributor

This bug has been fixed in #150, and later in #159

@bosd
Copy link

bosd commented Feb 18, 2024

@ygol How did you setup the communication with an external postgres server?
Is it also possible in devel environment?

@ygol
Copy link
Author

ygol commented Feb 19, 2024

@ygol How did you setup the communication with an external postgres server? Is it also possible in devel environment?

I did not configure it.
You can add the following in devel.yaml to allow connecting to "postgres-external-address"

proxy_postgres-external-address:
    image: ghcr.io/tecnativa/docker-whitelist:latest
    networks:
      default:
        aliases:
          - postgres-external-address
      public:
    environment:
      TARGET: postgres-external-address
      PRE_RESOLVE: 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working hacktoberfest Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants