From 8f123c49b25b0f8199dc2341c51674bc1affcc31 Mon Sep 17 00:00:00 2001 From: counterweight Date: Sun, 29 Oct 2023 18:43:50 +0100 Subject: [PATCH 1/2] Remove the restart policy. It's not really needed. --- code_thingies/database/docker-compose.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code_thingies/database/docker-compose.yaml b/code_thingies/database/docker-compose.yaml index b31f477..f51434c 100644 --- a/code_thingies/database/docker-compose.yaml +++ b/code_thingies/database/docker-compose.yaml @@ -14,7 +14,7 @@ services: - "5432:5432" networks: - postgres - restart: unless-stopped + pgadmin: container_name: pgadmin_container @@ -31,7 +31,7 @@ services: - "12345:80" networks: - postgres - restart: unless-stopped + networks: From d078ee2e47f823a04162aca1a807d2b5d31f91e8 Mon Sep 17 00:00:00 2001 From: counterweight Date: Mon, 30 Oct 2023 09:09:38 +0100 Subject: [PATCH 2/2] Thingies --- code_thingies/database/README.md | 6 ++++++ code_thingies/database/docker-compose.yaml | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/code_thingies/database/README.md b/code_thingies/database/README.md index a700d18..a57615e 100644 --- a/code_thingies/database/README.md +++ b/code_thingies/database/README.md @@ -75,3 +75,9 @@ aws s3 cp s3://dbtlearn/hosts.csv hosts.csv How to put the data into the databases is up to you. I've done it successfully using the import functionality of DBeaver. + + + +## Known issues + +- Originally, the image `postgres:16` was used, but some locals had a quirky issue running it. The solution was to switch to `postgres:16 \ No newline at end of file diff --git a/code_thingies/database/docker-compose.yaml b/code_thingies/database/docker-compose.yaml index f51434c..03a58d5 100644 --- a/code_thingies/database/docker-compose.yaml +++ b/code_thingies/database/docker-compose.yaml @@ -3,7 +3,7 @@ version: '3.5' services: postgres: container_name: dbt_postgres - image: postgres:16 + image: postgres:16-alpine environment: POSTGRES_USER: dbt_postgres_user POSTGRES_PASSWORD: dbt_postgres_password @@ -18,7 +18,7 @@ services: pgadmin: container_name: pgadmin_container - image: dpage/pgadmin4 + image: dpage/pgadmin4:7.8 environment: PGADMIN_DEFAULT_EMAIL: pgadmin_user@email.com PGADMIN_DEFAULT_PASSWORD: pgadmin_password