diff --git a/Dockerfile b/Dockerfile index 81ff409..01a6014 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Use a base image with Java 21 -FROM eclipse-temurin:21 +FROM amazoncorretto:21.0.3-al2023-headless # Create a directory in the container WORKDIR /app diff --git a/README.md b/README.md index d0bc8d6..66fb488 100644 --- a/README.md +++ b/README.md @@ -41,5 +41,15 @@ A aplicação inclui um `Dockerfile` para construir uma imagem Docker da aplica Para construir a imagem Docker da aplicação, execute o seguinte comando no diretório raiz do projeto: -Para executar a aplicação e o banco de dados PostgreSQL em containers Docker, execute o seguinte comando no diretório raiz do projeto: -docker-compose up \ No newline at end of file +Para executar a aplicação e o banco de dados PostgreSQL em containers Docker, execute o seguinte comando no diretório raiz do projeto, nesta sequência: + + +./gradleW build + +docker compose build + +docker-compose up + +Caso queira parar a execução dos containers, execute o seguinte comando no diretório raiz do projeto: + +docker compose down --remove-orphans \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 88f5ce3..328cd2e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,7 +13,6 @@ services: volumes: - ./init.sql:/docker-entrypoint-initdb.d/init.sql - ./postgres-data:/var/lib/postgresql/data - command: postgres -c port=5432 networks: - postgres-network diff --git a/postgres-data/base/16384/1249 b/postgres-data/base/16384/1249 index f5fe3d9..db1dc72 100644 Binary files a/postgres-data/base/16384/1249 and b/postgres-data/base/16384/1249 differ diff --git a/postgres-data/base/16384/16386 b/postgres-data/base/16384/16386 index 5d292e8..1d6dc28 100644 Binary files a/postgres-data/base/16384/16386 and b/postgres-data/base/16384/16386 differ diff --git a/postgres-data/base/16384/16395 b/postgres-data/base/16384/16395 index 611a608..7cd4d02 100644 Binary files a/postgres-data/base/16384/16395 and b/postgres-data/base/16384/16395 differ diff --git a/postgres-data/base/16384/16423 b/postgres-data/base/16384/16423 index 891d5af..710a625 100644 Binary files a/postgres-data/base/16384/16423 and b/postgres-data/base/16384/16423 differ diff --git a/postgres-data/base/16384/2224 b/postgres-data/base/16384/2224 index 0a3ee4f..6ecfbfd 100644 Binary files a/postgres-data/base/16384/2224 and b/postgres-data/base/16384/2224 differ diff --git a/postgres-data/base/16384/2604 b/postgres-data/base/16384/2604 index d4f51db..fcf6efb 100644 Binary files a/postgres-data/base/16384/2604 and b/postgres-data/base/16384/2604 differ diff --git a/postgres-data/base/16384/2606 b/postgres-data/base/16384/2606 index da0f9ac..a34676c 100644 Binary files a/postgres-data/base/16384/2606 and b/postgres-data/base/16384/2606 differ diff --git a/postgres-data/base/16384/2608 b/postgres-data/base/16384/2608 index e06d9e0..01de42b 100644 Binary files a/postgres-data/base/16384/2608 and b/postgres-data/base/16384/2608 differ diff --git a/postgres-data/base/16384/pg_internal.init b/postgres-data/base/16384/pg_internal.init index 2934ed8..e3e4332 100644 Binary files a/postgres-data/base/16384/pg_internal.init and b/postgres-data/base/16384/pg_internal.init differ diff --git a/postgres-data/base/5/pg_internal.init b/postgres-data/base/5/pg_internal.init index ae4e7f0..e96c188 100644 Binary files a/postgres-data/base/5/pg_internal.init and b/postgres-data/base/5/pg_internal.init differ diff --git a/postgres-data/global/1260 b/postgres-data/global/1260 index 1ecb202..417fdbb 100644 Binary files a/postgres-data/global/1260 and b/postgres-data/global/1260 differ diff --git a/postgres-data/global/pg_control b/postgres-data/global/pg_control index cb57900..5ea5c23 100644 Binary files a/postgres-data/global/pg_control and b/postgres-data/global/pg_control differ diff --git a/postgres-data/global/pg_internal.init b/postgres-data/global/pg_internal.init index f4ad2b0..d69506b 100644 Binary files a/postgres-data/global/pg_internal.init and b/postgres-data/global/pg_internal.init differ diff --git a/postgres-data/pg_stat/pgstat.stat b/postgres-data/pg_stat/pgstat.stat index 145624d..33f2748 100644 Binary files a/postgres-data/pg_stat/pgstat.stat and b/postgres-data/pg_stat/pgstat.stat differ diff --git a/postgres-data/pg_wal/000000010000000000000001 b/postgres-data/pg_wal/000000010000000000000001 index b7f28a8..cecff6e 100644 Binary files a/postgres-data/pg_wal/000000010000000000000001 and b/postgres-data/pg_wal/000000010000000000000001 differ diff --git a/postgres-data/postmaster.opts b/postgres-data/postmaster.opts index af6102b..2682339 100644 --- a/postgres-data/postmaster.opts +++ b/postgres-data/postmaster.opts @@ -1 +1 @@ -/usr/lib/postgresql/16/bin/postgres "-c" "port=5432" +/usr/lib/postgresql/16/bin/postgres