{"id":12462,"date":"2020-01-12T19:49:21","date_gmt":"2020-01-12T17:49:21","guid":{"rendered":"https:\/\/www.datanovia.com\/en\/?post_type=dt_lessons&#038;p=12462"},"modified":"2020-01-13T13:55:42","modified_gmt":"2020-01-13T11:55:42","slug":"docker-compose-wait-for-container-using-dockerize-tool","status":"publish","type":"dt_lessons","link":"https:\/\/www.datanovia.com\/en\/lessons\/docker-compose-wait-for-container-using-dockerize-tool\/","title":{"rendered":"Docker Compose Wait for Container using Dockerize Tool"},"content":{"rendered":"<div id=\"rdoc\">\n<p>This article provides an example of a step-by-step reproducible guide to make <strong>docker-compose wait for container<\/strong> dependencies (example: <em>MySQL<\/em>, <em>Postgres<\/em>, <em>Redis<\/em>, <em>Mongodb<\/em>) using the <a href=\"https:\/\/github.com\/jwilder\/dockerize\">dockerize<\/a> tool.<\/p>\n<p>The <strong>dockerize<\/strong> tool gives you the ability to wait for services on a specified protocol (<code>file<\/code>, <code>tcp<\/code>, <code>tcp4<\/code>, <code>tcp6<\/code>, <code>http<\/code>, <code>https<\/code> and <code>unix<\/code>) before starting your application:<\/p>\n<pre class=\"bash\"><code>dockerize -wait tcp:\/\/db:5432 -wait http:\/\/web:80 -wait file:\/\/\/tmp\/generated-file<\/code><\/pre>\n<p><strong>Important arguments<\/strong>:<\/p>\n<ul>\n<li><em>timeout<\/em>. You can optionally specify how long to wait for the services to become available by using the <code>-timeout #<\/code> argument (Default: 10 seconds). If the timeout is reached and the service is still not available, the process exits with status code 1.<\/li>\n<li><em>wait-retry-interval<\/em>. dockerize sleeping time before checking whether the dependencies are ready<\/li>\n<\/ul>\n<pre class=\"bash\"><code>dockerize -wait tcp:\/\/db:5432 -wait http:\/\/web:80 -timeout 10s -wait-retry-interval 3s<\/code><\/pre>\n<p>Contents:<\/p>\n<div id=\"TOC\">\n<ul>\n<li><a href=\"#quick-start\">Quick start<\/a><\/li>\n<li><a href=\"#step-0-download-a-template\">Step 0: Download a template<\/a><\/li>\n<li><a href=\"#step-1-add-the-dockerize-tool-to-your-application-dockerfile\">Step 1: Add the dockerize tool to your application Dockerfile<\/a><\/li>\n<li><a href=\"#step-2-modify-your-docker-compose.yml-file\">Step 2: Modify your docker-compose.yml file<\/a><\/li>\n<li><a href=\"#step-3-building-and-running-your-app\">Step 3: Building and running your app<\/a><\/li>\n<li><a href=\"#step-4-stopping-containers-and-cleaning\">Step 4: Stopping containers and cleaning<\/a><\/li>\n<li><a href=\"#summary\">Summary<\/a><\/li>\n<li><a href=\"#references\">References<\/a><\/li>\n<\/ul>\n<\/div>\n<div id=\"quick-start\" class=\"section level2\">\n<h2>Quick start<\/h2>\n<pre class=\"bash\"><code># Download a template\r\ngit clone https:\/\/github.com\/kassambara\/docker-compose-wait-for-container.git\r\n\r\n# Build the demo application\r\ncd docker-compose-wait-for-container\/ex02-using-dockerize-tool\r\ndocker-compose build\r\n# Running your app\r\ndocker-compose run my_super_app\r\n\r\n# Stopping containers and cleaning\r\ndocker-compose down \r\nrm -rf mysql<\/code><\/pre>\n<\/div>\n<div id=\"step-0-download-a-template\" class=\"section level2\">\n<h2>Step 0: Download a template<\/h2>\n<pre class=\"bash\"><code># Download a template\r\ngit clone https:\/\/github.com\/kassambara\/docker-compose-wait-for-container.git\r\ncd docker-compose-wait-for-container\/ex02-using-dockerize-tool<\/code><\/pre>\n<p><strong>Project folder structure<\/strong>:<\/p>\n<pre><code>files\/docker-compose-wait-for-container\/ex02-using-dockerize-tool\r\n\u251c\u2500\u2500 docker-compose.yml\r\n\u2514\u2500\u2500 my_super_app\r\n    \u251c\u2500\u2500 Dockerfile\r\n    \u2514\u2500\u2500 sayhello<\/code><\/pre>\n<p>Essential project contents:<\/p>\n<ul>\n<li><code>docker-compose.yml<\/code> to run all container services<\/li>\n<li><code>my_super_app<\/code> scripts: template Dockerfile to build your application. Here, this demo app will ask your name and then congratulate you!<\/li>\n<\/ul>\n<\/div>\n<div id=\"step-1-add-the-dockerize-tool-to-your-application-dockerfile\" class=\"section level2\">\n<h2>Step 1: Add the dockerize tool to your application Dockerfile<\/h2>\n<p>Example of Dockerfile using the <code>alpine<\/code> image:<\/p>\n<pre class=\"dockerfile\"><code>FROM alpine:latest\r\n\r\n# Add hello scripts\r\nADD sayhello \/sayhello\r\nRUN chmod +x \/sayhello\r\n\r\n# Add dockerize tool -------------------\r\nRUN apk add --no-cache openssl\r\nENV DOCKERIZE_VERSION v0.6.1\r\nRUN wget https:\/\/github.com\/jwilder\/dockerize\/releases\/download\/$DOCKERIZE_VERSION\/dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \\\r\n    &amp;&amp; tar -C \/usr\/local\/bin -xzvf dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \\\r\n    &amp;&amp; rm dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz\r\n\r\nCMD [\"\/sayhello\"]<\/code><\/pre>\n<p><strong>Use this for Ubuntu image<\/strong>:<\/p>\n<pre class=\"dockerfile\"><code># Add dockerize tool -------------------\r\nRUN apt-get update &amp;&amp; apt-get install -y wget\r\nENV DOCKERIZE_VERSION v0.6.1\r\nRUN wget https:\/\/github.com\/jwilder\/dockerize\/releases\/download\/$DOCKERIZE_VERSION\/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \\\r\n    &amp;&amp; tar -C \/usr\/local\/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \\\r\n    &amp;&amp; rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz<\/code><\/pre>\n<\/div>\n<div id=\"step-2-modify-your-docker-compose.yml-file\" class=\"section level2\">\n<h2>Step 2: Modify your docker-compose.yml file<\/h2>\n<pre class=\"yaml\"><code>version: '3.6'\r\nservices:\r\n  mysql:\r\n    image: \"mysql:5.7\"\r\n    container_name: mysql\r\n    restart: always\r\n    volumes:\r\n      - .\/mysql:\/var\/lib\/mysql\r\n    environment:\r\n      - MYSQL_ROOT_PASSWORD=your_password\r\n      - MYSQL_USER=root\r\n      - MYSQL_PASSWORD=your_password\r\n      - MYSQL_DATABASE=wordpress\r\n    ports:\r\n      - \"3306:3306\"\r\n    expose:\r\n      - 3306\r\n\r\n  my_super_app:\r\n    build: .\/my_super_app\r\n    image: \"my_super_app:latest\"\r\n    container_name: my_supper_app\r\n    depends_on:\r\n      - mysql\r\n    command: sh -c \"dockerize -wait tcp:\/\/mysql:3306 -timeout 300s -wait-retry-interval 30s \/sayhello\"<\/code><\/pre>\n<p>In essence, Dockerize is a wrapper. <code>dockerize our_normal_command<\/code> just calls our command. But optionally, we can add parameters to <em>delay execution<\/em>, <em>perform file templating<\/em> or <em>redirect output from files to STDOUT\/STDERR<\/em>. Very common and useful operations in a Docker world.<\/p>\n<p><strong>Examples of optional dockerize configurations<\/strong>:<\/p>\n<pre class=\"bash\"><code># redirect files to stdout and stderr\r\ndockerize \\\r\n  -stdout info.log \\\r\n  -stdout perf.log \\\r\n  ...\r\n\r\n# wait for 2 services with 10s timeout\r\ndockerize \\\r\n  -wait tcp:\/\/db:5432 \\\r\n  -wait http:\/\/web:80 \\\r\n  -timeout 10s \\\r\n  ...\r\n\r\n# template option\r\ndockerize \\\r\n  -template nginx.tmpl:nginx.conf \\\r\n  ...<\/code><\/pre>\n<\/div>\n<div id=\"step-3-building-and-running-your-app\" class=\"section level2\">\n<h2>Step 3: Building and running your app<\/h2>\n<pre class=\"bash\"><code># Building your app\r\ncd docker-compose-wait-for-container\/ex02-using-dockerize-tool\r\ndocker-compose build\r\n# Running your app\r\ndocker-compose run my_super_app<\/code><\/pre>\n<p>Console log output:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/dn-tutorials\/docker-compose-wait-for-container\/images\/docker-compose-wait-for-mysql-dockerize-logs.png\" alt=\"Docker compose wait logs\" \/><\/p>\n<div class=\"success\">\n<p>After typing your name, you will see a congratulation message from my_super_app<\/p>\n<\/div>\n<\/div>\n<div id=\"step-4-stopping-containers-and-cleaning\" class=\"section level2\">\n<h2>Step 4: Stopping containers and cleaning<\/h2>\n<pre class=\"bash\"><code>docker-compose down \r\nrm -rf mysql<\/code><\/pre>\n<\/div>\n<div id=\"summary\" class=\"section level2\">\n<h2>Summary<\/h2>\n<p>This article describes how to make docker-compose wait for container dependencies using the dockerize tool.<\/p>\n<\/div>\n<div id=\"references\" class=\"section level2\">\n<h2>References<\/h2>\n<ul>\n<li><a href=\"https:\/\/rock-it.pl\/better-docker-containers-with-dockerize-wrapper\/\">Better Docker experience with Dockerize<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/jwilder\/dockerize\">Dockerize: Utility to simplify running applications in docker containers<\/a><\/li>\n<\/ul>\n<\/div>\n<\/div>\n<p><!--end rdoc--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Provides an example to make docker-compose wait for container dependencies (example: MySQL, Postgres, Redis, Mongodb) using the dockerize tool.<\/p>\n","protected":false},"author":1,"featured_media":9044,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","class_list":["post-12462","dt_lessons","type-dt_lessons","status-publish","has-post-thumbnail","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Docker Compose Wait for Container using Dockerize Tool : Excellent Guide - Datanovia<\/title>\n<meta name=\"description\" content=\"Provides an example to make docker-compose wait for container dependencies (example: MySQL, Postgres, Redis, Mongodb) using the dockerize tool.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.datanovia.com\/en\/lessons\/docker-compose-wait-for-container-using-dockerize-tool\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Docker Compose Wait for Container using Dockerize Tool : Excellent Guide - Datanovia\" \/>\n<meta property=\"og:description\" content=\"Provides an example to make docker-compose wait for container dependencies (example: MySQL, Postgres, Redis, Mongodb) using the dockerize tool.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.datanovia.com\/en\/lessons\/docker-compose-wait-for-container-using-dockerize-tool\/\" \/>\n<meta property=\"og:site_name\" content=\"Datanovia\" \/>\n<meta property=\"article:modified_time\" content=\"2020-01-13T11:55:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2019\/05\/X30710337_612205602452721_7521535158294334608_n.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"512\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.datanovia.com\/en\/lessons\/docker-compose-wait-for-container-using-dockerize-tool\/\",\"url\":\"https:\/\/www.datanovia.com\/en\/lessons\/docker-compose-wait-for-container-using-dockerize-tool\/\",\"name\":\"Docker Compose Wait for Container using Dockerize Tool : Excellent Guide - Datanovia\",\"isPartOf\":{\"@id\":\"https:\/\/www.datanovia.com\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.datanovia.com\/en\/lessons\/docker-compose-wait-for-container-using-dockerize-tool\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.datanovia.com\/en\/lessons\/docker-compose-wait-for-container-using-dockerize-tool\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2019\/05\/X30710337_612205602452721_7521535158294334608_n.jpg\",\"datePublished\":\"2020-01-12T17:49:21+00:00\",\"dateModified\":\"2020-01-13T11:55:42+00:00\",\"description\":\"Provides an example to make docker-compose wait for container dependencies (example: MySQL, Postgres, Redis, Mongodb) using the dockerize tool.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.datanovia.com\/en\/lessons\/docker-compose-wait-for-container-using-dockerize-tool\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.datanovia.com\/en\/lessons\/docker-compose-wait-for-container-using-dockerize-tool\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.datanovia.com\/en\/lessons\/docker-compose-wait-for-container-using-dockerize-tool\/#primaryimage\",\"url\":\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2019\/05\/X30710337_612205602452721_7521535158294334608_n.jpg\",\"contentUrl\":\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2019\/05\/X30710337_612205602452721_7521535158294334608_n.jpg\",\"width\":1024,\"height\":512},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.datanovia.com\/en\/lessons\/docker-compose-wait-for-container-using-dockerize-tool\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.datanovia.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Lessons\",\"item\":\"https:\/\/www.datanovia.com\/en\/lessons\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Docker Compose Wait for Container using Dockerize Tool\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.datanovia.com\/en\/#website\",\"url\":\"https:\/\/www.datanovia.com\/en\/\",\"name\":\"Datanovia\",\"description\":\"Data Mining and Statistics for Decision Support\",\"publisher\":{\"@id\":\"https:\/\/www.datanovia.com\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.datanovia.com\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.datanovia.com\/en\/#organization\",\"name\":\"Datanovia\",\"url\":\"https:\/\/www.datanovia.com\/en\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.datanovia.com\/en\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2018\/09\/datanovia-logo.png\",\"contentUrl\":\"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2018\/09\/datanovia-logo.png\",\"width\":98,\"height\":99,\"caption\":\"Datanovia\"},\"image\":{\"@id\":\"https:\/\/www.datanovia.com\/en\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Docker Compose Wait for Container using Dockerize Tool : Excellent Guide - Datanovia","description":"Provides an example to make docker-compose wait for container dependencies (example: MySQL, Postgres, Redis, Mongodb) using the dockerize tool.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.datanovia.com\/en\/lessons\/docker-compose-wait-for-container-using-dockerize-tool\/","og_locale":"en_US","og_type":"article","og_title":"Docker Compose Wait for Container using Dockerize Tool : Excellent Guide - Datanovia","og_description":"Provides an example to make docker-compose wait for container dependencies (example: MySQL, Postgres, Redis, Mongodb) using the dockerize tool.","og_url":"https:\/\/www.datanovia.com\/en\/lessons\/docker-compose-wait-for-container-using-dockerize-tool\/","og_site_name":"Datanovia","article_modified_time":"2020-01-13T11:55:42+00:00","og_image":[{"width":1024,"height":512,"url":"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2019\/05\/X30710337_612205602452721_7521535158294334608_n.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.datanovia.com\/en\/lessons\/docker-compose-wait-for-container-using-dockerize-tool\/","url":"https:\/\/www.datanovia.com\/en\/lessons\/docker-compose-wait-for-container-using-dockerize-tool\/","name":"Docker Compose Wait for Container using Dockerize Tool : Excellent Guide - Datanovia","isPartOf":{"@id":"https:\/\/www.datanovia.com\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.datanovia.com\/en\/lessons\/docker-compose-wait-for-container-using-dockerize-tool\/#primaryimage"},"image":{"@id":"https:\/\/www.datanovia.com\/en\/lessons\/docker-compose-wait-for-container-using-dockerize-tool\/#primaryimage"},"thumbnailUrl":"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2019\/05\/X30710337_612205602452721_7521535158294334608_n.jpg","datePublished":"2020-01-12T17:49:21+00:00","dateModified":"2020-01-13T11:55:42+00:00","description":"Provides an example to make docker-compose wait for container dependencies (example: MySQL, Postgres, Redis, Mongodb) using the dockerize tool.","breadcrumb":{"@id":"https:\/\/www.datanovia.com\/en\/lessons\/docker-compose-wait-for-container-using-dockerize-tool\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.datanovia.com\/en\/lessons\/docker-compose-wait-for-container-using-dockerize-tool\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.datanovia.com\/en\/lessons\/docker-compose-wait-for-container-using-dockerize-tool\/#primaryimage","url":"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2019\/05\/X30710337_612205602452721_7521535158294334608_n.jpg","contentUrl":"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2019\/05\/X30710337_612205602452721_7521535158294334608_n.jpg","width":1024,"height":512},{"@type":"BreadcrumbList","@id":"https:\/\/www.datanovia.com\/en\/lessons\/docker-compose-wait-for-container-using-dockerize-tool\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.datanovia.com\/en\/"},{"@type":"ListItem","position":2,"name":"Lessons","item":"https:\/\/www.datanovia.com\/en\/lessons\/"},{"@type":"ListItem","position":3,"name":"Docker Compose Wait for Container using Dockerize Tool"}]},{"@type":"WebSite","@id":"https:\/\/www.datanovia.com\/en\/#website","url":"https:\/\/www.datanovia.com\/en\/","name":"Datanovia","description":"Data Mining and Statistics for Decision Support","publisher":{"@id":"https:\/\/www.datanovia.com\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.datanovia.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.datanovia.com\/en\/#organization","name":"Datanovia","url":"https:\/\/www.datanovia.com\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.datanovia.com\/en\/#\/schema\/logo\/image\/","url":"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2018\/09\/datanovia-logo.png","contentUrl":"https:\/\/www.datanovia.com\/en\/wp-content\/uploads\/2018\/09\/datanovia-logo.png","width":98,"height":99,"caption":"Datanovia"},"image":{"@id":"https:\/\/www.datanovia.com\/en\/#\/schema\/logo\/image\/"}}]}},"multi-rating":{"mr_rating_results":[]},"_links":{"self":[{"href":"https:\/\/www.datanovia.com\/en\/wp-json\/wp\/v2\/dt_lessons\/12462","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.datanovia.com\/en\/wp-json\/wp\/v2\/dt_lessons"}],"about":[{"href":"https:\/\/www.datanovia.com\/en\/wp-json\/wp\/v2\/types\/dt_lessons"}],"author":[{"embeddable":true,"href":"https:\/\/www.datanovia.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.datanovia.com\/en\/wp-json\/wp\/v2\/comments?post=12462"}],"version-history":[{"count":1,"href":"https:\/\/www.datanovia.com\/en\/wp-json\/wp\/v2\/dt_lessons\/12462\/revisions"}],"predecessor-version":[{"id":12500,"href":"https:\/\/www.datanovia.com\/en\/wp-json\/wp\/v2\/dt_lessons\/12462\/revisions\/12500"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.datanovia.com\/en\/wp-json\/wp\/v2\/media\/9044"}],"wp:attachment":[{"href":"https:\/\/www.datanovia.com\/en\/wp-json\/wp\/v2\/media?parent=12462"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}