From ad39e4aaf07fe1ed1b810537a6aa38b69a9245a7 Mon Sep 17 00:00:00 2001 From: raphaelmaenle Date: Sun, 19 Feb 2023 14:37:32 +0100 Subject: [PATCH] Updates elixir and postgres --- bump/Dockerfile | 3 ++- docker-compose.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bump/Dockerfile b/bump/Dockerfile index b9ad3fc..6a88143 100644 --- a/bump/Dockerfile +++ b/bump/Dockerfile @@ -1,6 +1,6 @@ # Elixir + Phoenix -FROM elixir:1.12.2 +FROM elixir:latest # Install debian packages RUN apt-get update @@ -12,5 +12,6 @@ RUN mix local.rebar --force RUN mix archive.install hex phx_new --force COPY setup.sh /usr/local/bin/ +RUN chmod +x /usr/local/bin/setup.sh EXPOSE 4012 ENTRYPOINT ["setup.sh"] diff --git a/docker-compose.yml b/docker-compose.yml index 9f79a8c..7b3fc80 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,8 @@ version: '3' services: database: - image: postgres + image: postgres:15 + container_name: bump-database environment: - POSTGRES_USER=postgres - POSTGRES_PASSWORD=postgres