Skip to content

Question: What is the POSTGRES_HOST #102

Answered by sigrlami
Jackbaude asked this question in Q&A
Discussion options

You must be logged in to vote

@Jackbaude That's the name of your container where PostgreSQL running, I usually call them <app-name>-db. For example, look how name stremma-ai-db shows up on docker-compose.yaml:

  stremma-ai-db:
    environment:
     - POSTGRES_PASSWORD=myawesomepass
     - POSTGRES_USER=myuser
     ... 
  pgbackups:
    image: prodrigestivill/postgres-backup-local
    restart: always
    user: postgres:postgres
    volumes:
        - /var/opt/pgbackups:/backups
    links:
        - stremma-ai-db
    depends_on:
        - stremma-ai-db
    environment:
        - POSTGRES_HOST=stremma-ai-db
        - POSTGRES_DB=database_name_inside_streamm-ai-db
    ....    

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by prodrigestivill
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #42 on August 20, 2022 17:50.