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