diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 132feae..e1cd9b6 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -35,11 +35,6 @@ jobs: docker ps docker logs soloanvill_backend-soloanvill-backend-1 docker logs soloanvill_backend-db-1 - netstat -tulpn | grep 5432 - nc -zv 127.0.0.1 5432 - sudo su postgres - psql -h 127.0.0.1 -p 5432 -c "\du+" - psql -h 127.0.0.1 -p 5432 -c "\dt+" status=$(curl -s 127.0.0.1/api/health | grep -oP '(?<="status":")[^"]+') curl -s 127.0.0.1/api/health if [[ "$status" == "up" ]]; then diff --git a/docker-compose.yml b/docker-compose.yml index a973913..a566042 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,7 +6,7 @@ networks: services: db: - image: bitnami/postgresql:16.3.0-debian-12-r16 + image: postgres:16-alpine restart: always environment: POSTGRESQL_USERNAME: soloanvill @@ -24,6 +24,8 @@ services: - 80:8080 volumes: - ./config.yml:/app/config.yml + environment: + SOLOANVILL_DATABASE_HOST: db depends_on: db: condition: service_started