Skip to content

Commit

Permalink
fix: tidying up .env loading
Browse files Browse the repository at this point in the history
  • Loading branch information
felipeversiane committed Jun 9, 2024
1 parent 0d79d84 commit 3de0d7b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 0 additions & 1 deletion build/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ RUN CGO_ENABLED=0 GOOS=linux go build -o api ./cmd/api/main.go
FROM scratch
WORKDIR /
COPY --from=builder /app/api ./
COPY .env ./

ENTRYPOINT ["./api"]
7 changes: 7 additions & 0 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ services:
container_name: go01
restart: unless-stopped
env_file: .env
environment:
- PORT=${PORT}
- GIN_MODE=${GIN_MODE}
- LOG_LEVEL=${LOG_LEVEL}
- LOG_OUTPUT=${LOG_OUTPUT}
- AUTHORIZATION_URL=${AUTHORIZATION_URL}
- POSTGRES_URL=${POSTGRES_URL}
ports:
- "${PORT}:${PORT}"
depends_on:
Expand Down

0 comments on commit 3de0d7b

Please sign in to comment.