Stream: implementers
Topic: FHIRbase docker
Eugenio Páez Casado (Jun 30 2021 at 07:44):
Hello everyone
I am trying to build a fhirbase database from fhirbase/fhirbase docker, but I have a problem. When I down and up db container, I lost data which I register manually and have data which exist before I register anything. For example, when I start the container first time I have a lot of patients. I deleted all patients and register only one using fhirbase_create function. Now I execute docker-compose down && docker-compose up -d and I have all of patients I deleted and the patient I register before is lost!
I checked volumes at docker-compose.yml but it seems it is correct. What I am doing wrong??
Nathan Hall (Jun 30 2021 at 13:37):
you do need a volume, depending on your database (mysql, postgres, et al) it looks something like this in your docker-compose.yml file
volumes:
mysql_data:
services:
mysql_db:
image: mysql:5.7.23
volumes:
- mysql_data:/var/lib/mysql:cached
Last updated: Apr 12 2022 at 19:14 UTC