I am trying to run a Django project in docker swarm mode. The problem is I want to index the Elastic search container which needs to be run only after postgres completes the SQL dumping process (only in the first run). How can I do this? Any solutions.
Asked
Active
Viewed 402 times
1 Answers
1
I suggest making a cronjob container that does the SQL dump and elastic index using docker exec commands toward the corresponding containers.
HenriTel
- 111
- 1