From bc4d14a4f0c547299eb25312c801322991d2b775 Mon Sep 17 00:00:00 2001 From: Anthony Mineo Date: Sun, 8 Mar 2020 12:06:15 -0400 Subject: [PATCH] Update for public docker hub build images --- build/postgres/Dockerfile | 4 ++++ docker-compose.override.yml | 5 ++++- docker-compose.yml | 8 +++++--- 3 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 build/postgres/Dockerfile diff --git a/build/postgres/Dockerfile b/build/postgres/Dockerfile new file mode 100644 index 0000000..1ec1403 --- /dev/null +++ b/build/postgres/Dockerfile @@ -0,0 +1,4 @@ +FROM postgres:11.5 + +COPY ./build/postgres/docker-entrypoint-initdb.d /docker-entrypoint-initdb.d +COPY ./build/postgres/export_local_db.sh /export_local_db.sh \ No newline at end of file diff --git a/docker-compose.override.yml b/docker-compose.override.yml index d36af2a..6b76bab 100644 --- a/docker-compose.override.yml +++ b/docker-compose.override.yml @@ -5,9 +5,12 @@ services: db: environment: + POSTGRES_DB: "t2_stats" POSTGRES_USER: "dev" POSTGRES_PASSWORD: "dev" - POSTGRES_DB: "t2_stats" + volumes: + - ./build/postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d + - ./build/postgres/export_local_db.sh:/export_local_db.sh parser: diff --git a/docker-compose.yml b/docker-compose.yml index 2e988bd..e2c2f07 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,7 +4,10 @@ version: "3.7" services: db: - image: postgres:11.5 + image: "amineo/t2-stats-db:v0.1.1" + build: + context: . + dockerfile: ./build/postgres/Dockerfile ports: - "5432:5432" environment: @@ -12,14 +15,13 @@ services: POSTGRES_USER: "${POSTGRES_USER}" POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}" volumes: - - ./build/postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d - - ./build/postgres/export_local_db.sh:/export_local_db.sh - psqldata:/var/lib/postgresql/data networks: - internal parser: + image: "amineo/t2-stats-parser:v0.1.1" build: context: . dockerfile: ./build/go-t2-stat-parser/Dockerfile