Skip to content

Commit

Permalink
made the get functionality work in the docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
ibilalkayy committed Mar 9, 2024
1 parent be32621 commit 611bd64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ RUN go mod download

RUN go build -o flow .

CMD ["./flow"]
CMD ["sh", "-c", "./flow && while true; do echo 'App is running'; sleep 10; done"]
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ services:
build:
context: .
dockerfile: Dockerfile
command: sh -c "while true; do echo 'App is running'; sleep 10; done"
env_file:
- .env
environment:
Expand All @@ -16,6 +15,8 @@ services:
POSTGRES_SSL: "${SSLMODE}"
depends_on:
- postgres
volumes:
- ./app_data:/app/data

postgres:
image: postgres:latest
Expand Down

0 comments on commit 611bd64

Please sign in to comment.