Skip to content

New volume created on each container startup #88

Discussion options

You must be logged in to vote

Okay, upon further investigation I realized that backup container actually specifies two anonymous volumes:

"Volumes": {
                "/backups": {},
                "/var/lib/postgresql/data": {}
            },

After adding this volume to docker compose as named volume it works as expected:

services:
  (...)
  postgresql_backup:
    (...)
    volumes:
        - /opt/db_backups/:/backups
        - backup-data:/var/lib/postgresql/data
     (...)
volumes:
  database-data:

Still I think the docker compose snipped in readme should be updated to avoid this by default 😉

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dmartzol
Comment options

Answer selected by prodrigestivill
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

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