Skip to content

Commit

Permalink
update docker-compose.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
izelnakri committed Aug 30, 2024
1 parent 19e55f7 commit 364d8d1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ REGISTRY="inakri" # set -a && source .env
REPO_OWNER="izelnakri"
PGUSER=postgres
PGPASSWORD=postgres
PGHOST=localhost
# PGHOST=localhost
MIX_ENV=test
# CIRCLE_BRANCH=$$(if [ -v CIRCLE_BRANCH ]; then echo master; else git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'; fi)
# DOCKER_TAG=paper_trail:master
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ENV MIX_ENV=$MIX_ENV

WORKDIR /code/

RUN echo "y" | mix local.hex --if-missing && echo "y" | mix local.rebar --if-missing
RUN apk add postgresql | echo "y" | mix local.hex --if-missing && echo "y" | mix local.rebar --if-missing

ADD ["mix.lock", "mix.exs", "/code/"]

Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version: '3.4'
services:
db:
image: postgres:12.2-alpine
image: postgres:16.4-alpine
environment:
POSTGRES_PASSWORD: $PGPASSWORD
PGPASSWORD: $PGPASSWORD
PGUSER: $PGUSER
PGDATA: /var/lib/postgresql/data/pgdata
Expand Down
2 changes: 1 addition & 1 deletion setup-database.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
set -oe allexport
source ./.env
source .env

# Prepare Dialyzer if the project has Dialyxer set up
# if mix help dialyzer >/dev/null 2>&1
Expand Down

0 comments on commit 364d8d1

Please sign in to comment.