From 7ac5443006794a5ad71a434e9448abe394b77364 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Tue, 30 Nov 2021 16:47:20 +0100 Subject: [PATCH] Recommend building the image with docker-compose If we used the `docker build` to build the image and then `docker-compose`, we'd build two images. --- docs/en/installation/docker.md | 6 +++--- docs/es/installation/docker.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/en/installation/docker.md b/docs/en/installation/docker.md index 9bfae5c1b..d4cd947b8 100644 --- a/docs/en/installation/docker.md +++ b/docs/en/installation/docker.md @@ -80,16 +80,16 @@ cp config/database-docker.yml.example config/database.yml Then you'll have to build the container with: ```bash -docker build -t consul . +POSTGRES_PASSWORD=password docker-compose build ``` -Create your app database images: +Start the database service: ```bash POSTGRES_PASSWORD=password docker-compose up -d database ``` -Once built you can initialize your development DB and populate it with: +You can now initialize your development DB and populate it with: ``` POSTGRES_PASSWORD=password docker-compose run app rake db:create db:migrate diff --git a/docs/es/installation/docker.md b/docs/es/installation/docker.md index 90f01e4bb..25814db8b 100644 --- a/docs/es/installation/docker.md +++ b/docs/es/installation/docker.md @@ -80,16 +80,16 @@ cp config/database-docker.yml.example config/database.yml Y generamos el contenedor: ```bash -docker build -t consul . +POSTGRES_PASSWORD=password docker-compose build ``` -Creamos las imágenes de base de datos: +Arrancamos el servicio de base de datos: ```bash POSTGRES_PASSWORD=password docker-compose up -d database ``` -Una vez creada la imagen, podemos crear la base de datos e introducir datos de prueba: +Ahora podemos crear la base de datos e introducir datos de prueba: ``` POSTGRES_PASSWORD=password docker-compose run app rake db:create db:migrate