Skip to content

Commit

Permalink
applicants: introduce bops-applicant as a git submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
freesteph committed Oct 19, 2021
1 parent d362bdd commit 0961a97
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ public/packs-test/*
coverage/*
storage/*
Dockerfile
docker-compose.yml
docker-compose.yml
bops-applicants
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "bops-applicants"]
path = bops-applicants
url = [email protected]:unboxed/bops-applicants.git
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ up:
prompt:
$(DOCKER-RUN) bash

aprompt:
docker-compose run --rm applicants bash

guard:
$(DOCKER-RUN) $(BUNDLE-RUN) guard

Expand Down
1 change: 1 addition & 0 deletions bops-applicants
Submodule bops-applicants added at c31885
1 change: 1 addition & 0 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,5 @@
config.action_mailer.default_url_options = { host: (ENV["DOMAIN"] || "bops-care.link"), port: 3000 }

config.hosts << ".bops-care.link"
config.hosts << "southwark.southwark.web"
end
20 changes: 20 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ services:
stdin_open: true
environment:
DATABASE_URL: postgres://postgres:postgres@db:5432
APPLICANTS_APP_HOST: southwark.southwark.localhost:3001
networks:
default:
aliases:
- southwark.southwark.web
ports:
- "3000:3000"
depends_on:
Expand All @@ -24,5 +29,20 @@ services:
- type: bind
source: .
target: /app
applicants:
build: ./bops-applicants
environment:
API_BEARER: 123
API_HOST: southwark.web:3000
API_USER: api_user
PORT: 3001
PROTOCOL: http
ports:
- "3001:3001"
volumes:
- type: bind
source: ./bops-applicants/
target: /app

volumes:
db:

0 comments on commit 0961a97

Please sign in to comment.