Skip to content

Commit

Permalink
Add docker-compose.yml
Browse files Browse the repository at this point in the history
* added Tiltfile
  • Loading branch information
fumimowdan committed Sep 14, 2023
1 parent 5d45ae7 commit f60e6c6
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Tiltfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# point Tilt at the existing docker-compose configuration.
docker_compose("./docker-compose.yml")
2 changes: 2 additions & 0 deletions bin/app-startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# Dockerfile application startup script
#

set -e

# run migrations
bundle exec rails db:migrate

Expand Down
47 changes: 47 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
version: '3.9'
services:

redis:
image: redis:6.0-alpine
networks:
- gtrp
ports:
- 6379:6379

postgres:
image: postgres:15-alpine
networks:
- gtrp
environment:
- POSTGRES_USER=gtrp
- POSTGRES_PASSWORD=gtrp
- POSTGRES_DB=get_an_international_relocation_payment_development
ports:
- 5432:5432

app: &app
build:
context: .
args:
- COMMIT_SHA=shafoo
- GOVUK_NOTIFY_API_KEY
- GOVUK_NOTIFY_GENERIC_EMAIL_TEMPLATE_ID
networks:
- gtrp
depends_on: [ postgres, redis ]
ports:
- 3000:3000
environment:
- DATABASE_URL=postgresql://gtrp:gtrp@postgres/get_an_international_relocation_payment_development
- REDIS_URL=redis://redis
env_file:
- .env

worker:
<<: *app
ports:
- 3001:3001
command: bundle exec sidekiq -C ./config/sidekiq.yml

networks:
gtrp:

0 comments on commit f60e6c6

Please sign in to comment.