From 3f0262c67a11b36a03891d1e074f70cfe275cd8d Mon Sep 17 00:00:00 2001 From: bidof Date: Tue, 12 Mar 2024 12:21:34 +0100 Subject: [PATCH] bug --- .github/workflows/release.yml | 1 + docker-compose.yml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0b2620b..b115aee 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -144,5 +144,6 @@ jobs: command: | wget https://raw.githubusercontent.com/arquisoft/wiq_es04c/master/docker-compose.yml -O docker-compose.yml wget https://raw.githubusercontent.com/arquisoft/wiq_es04c/master/.env -O .env + wget https://raw.githubusercontent.com/arquisoft/wiq_es04c/master/questionservice/database/schema.sql -O schema.sql docker compose --profile prod down docker compose --profile prod up -d \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index f50ed1d..6a9c1a7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -28,7 +28,8 @@ services: - mysql-data:/var/lib/mysql #montar en el directorio de mysql el archivo schema que esta en questionservice/database para que lo tenga el contendor y lo pueda ejecutar #create_db es true - - questionservice/database/:/docker-entrypoint-initdb.d + - ./schema.sql:/docker-entrypoint-initdb.d/schema.sql + networks: - mynetwork expose: