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

Docs for connecting to external database server during setup/installation #359

Open
AlisterBaroi opened this issue Aug 10, 2024 · 2 comments
Labels
question Further information is requested

Comments

@AlisterBaroi
Copy link

What if, let's say, I want to deploy peppermint, but without setting up the database from the docker compose file.

I want to just assign the environment variables of the database to the peppermint service, so that I can connect to a separate database hosted at a cloud provider (let's say).

Benefits:

  • Peppermint can be setup using just a Dockerfile,
  • Option to not manually setup database for the peppermint, just connect to an already-existing DB hosted somewhere instead,

The docker compose with the single service would look like this (can also be converted to a single Dockerfile):

version: "3.1"

services:
  peppermint:
    container_name: peppermint
    image: pepperlabs/peppermint:latest
    ports:
      - 3000:3000
      - 5003:5003
    restart: always
    healthcheck:
      test: ["CMD", "sh", "-c", "wget --spider $$API_URL"]
      interval: 30s
      timeout: 10s
      retries: 3
    environment:
      DB_USERNAME: "name-of-empty-external-DB"
      DB_PASSWORD: "pass-of-empty-external-DB"
      DB_HOST: "ip-of-empty-external-DB"
      SECRET: 'peppermint4life'

volumes:
 pgdata:
@potts99
Copy link
Collaborator

potts99 commented Oct 21, 2024

that should work?

@potts99
Copy link
Collaborator

potts99 commented Oct 21, 2024

I'll test it myself tonight

@potts99 potts99 added the question Further information is requested label Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants