Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
fix: update image Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
otavio-code committed May 26, 2024
1 parent 6bddd69 commit 881b741
Show file tree
Hide file tree
Showing 19 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
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
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Binary file modified postgres-data/base/16384/1249
Binary file not shown.
Binary file modified postgres-data/base/16384/16386
Binary file not shown.
Binary file modified postgres-data/base/16384/16395
Binary file not shown.
Binary file modified postgres-data/base/16384/16423
Binary file not shown.
Binary file modified postgres-data/base/16384/2224
Binary file not shown.
Binary file modified postgres-data/base/16384/2604
Binary file not shown.
Binary file modified postgres-data/base/16384/2606
Binary file not shown.
Binary file modified postgres-data/base/16384/2608
Binary file not shown.
Binary file modified postgres-data/base/16384/pg_internal.init
Binary file not shown.
Binary file modified postgres-data/base/5/pg_internal.init
Binary file not shown.
Binary file modified postgres-data/global/1260
Binary file not shown.
Binary file modified postgres-data/global/pg_control
Binary file not shown.
Binary file modified postgres-data/global/pg_internal.init
Binary file not shown.
Binary file modified postgres-data/pg_stat/pgstat.stat
Binary file not shown.
Binary file modified postgres-data/pg_wal/000000010000000000000001
Binary file not shown.
2 changes: 1 addition & 1 deletion postgres-data/postmaster.opts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/usr/lib/postgresql/16/bin/postgres "-c" "port=5432"
/usr/lib/postgresql/16/bin/postgres

0 comments on commit 881b741

Please sign in to comment.