Skip to content

Commit

Permalink
Add search-api-v2 project
Browse files Browse the repository at this point in the history
[search-api-v2](https://github.com/alphagov/search-api-v2) will be
replacing parts of the existing search-api project in the short term
(and possibly more of it in the long term).

This adds a trivial set of configuration to get it running locally and
will be extended once the app starts doing useful things.
  • Loading branch information
csutter committed Aug 29, 2023
1 parent 961bd71 commit 46b5d3c
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ services:
- router.dev.gov.uk
- search-admin.dev.gov.uk
- search-api.dev.gov.uk
- search-api-v2.dev.gov.uk
- search.dev.gov.uk
- service-manual-publisher.dev.gov.uk
- short-url-manager.dev.gov.uk
Expand Down
1 change: 1 addition & 0 deletions projects/search-api-v2/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
search-api-v2: bundle-search-api-v2
31 changes: 31 additions & 0 deletions projects/search-api-v2/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
x-search-api-v2: &search-api-v2
build:
context: .
dockerfile: Dockerfile.govuk-base
image: search-api-v2
stdin_open: true
tty: true
volumes:
- ${GOVUK_ROOT_DIR:-~/govuk}:/govuk:delegated
- search-api-v2-tmp:/govuk/search-api-v2/tmp
- root-home:/root
working_dir: /govuk/search-api-v2

volumes:
search-api-v2-tmp:

services:
search-api-v2-lite:
<<: *search-api-v2

search-api-v2-app:
<<: *search-api-v2
depends_on:
- nginx-proxy
environment:
RAILS_DEVELOPMENT_HOSTS: search-api-v2.dev.gov.uk
VIRTUAL_HOST: search-api-v2.dev.gov.uk
BINDING: 0.0.0.0
expose:
- "3000"
command: bin/rails server --restart

0 comments on commit 46b5d3c

Please sign in to comment.