Skip to content

Commit

Permalink
Adds govuk-chat repo to available apps
Browse files Browse the repository at this point in the history
- At the moment it only links the app and postgresSQL 13 for a basic dev environment
  • Loading branch information
Alex Avlonitis committed Mar 4, 2024
1 parent 1d94720 commit edc7713
Show file tree
Hide file tree
Showing 4 changed files with 47 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 @@ -138,6 +138,7 @@ services:
- finder-frontend.dev.gov.uk
- government-frontend.dev.gov.uk
- govspeak-preview.dev.gov.uk
- govuk-chat.dev.gov.uk
- govuk-developer-docs.dev.gov.uk
- govuk-publishing-components.dev.gov.uk
- hmrc-manuals-api.dev.gov.uk
Expand Down
1 change: 1 addition & 0 deletions docs/compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ These are repos that can be started as a some kind of process, such as a web app
* **TODO: Missing support for running the worker**
- ✅ govuk_publishing_components
- ✅ govuk-developer-docs
- ✅ govuk-chat
- ✅ hmrc-manuals-api
- ✅ imminence
- ❌ licensify
Expand Down
4 changes: 4 additions & 0 deletions projects/govuk-chat/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
govuk-chat: bundle-govuk-chat
$(GOVUK_DOCKER) run $@-lite bin/rails db:setup
$(GOVUK_DOCKER) run $@-lite env RAILS_ENV=test bin/rails db:setup
$(GOVUK_DOCKER) run $@-lite yarn
41 changes: 41 additions & 0 deletions projects/govuk-chat/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
version: '3.7'

volumes:
govuk-chat-tmp:
govuk-chat-node-modules:

x-govuk-chat: &govuk-chat
build:
context: .
dockerfile: Dockerfile.govuk-base
image: govuk-chat
stdin_open: true
tty: true
volumes:
- ${GOVUK_ROOT_DIR:-~/govuk}:/govuk:delegated
- root-home:/root
- govuk-chat-tmp:/govuk/govuk-chat/tmp
- govuk-chat-node-modules:/govuk/govuk-chat/node_modules
working_dir: /govuk/govuk-chat

services:
govuk-chat-lite:
<<: *govuk-chat
depends_on:
- postgres-13
environment:
DATABASE_URL: "postgresql://postgres@postgres-13/govuk-chat"
TEST_DATABASE_URL: "postgresql://postgres@postgres-13/govuk-chat-test"

govuk-chat-app:
<<: *govuk-chat
depends_on:
- nginx-proxy
- postgres-13
environment:
DATABASE_URL: "postgresql://postgres@postgres-13/govuk-chat"
VIRTUAL_HOST: govuk-chat.dev.gov.uk
BINDING: 0.0.0.0
expose:
- "3000"
command: bin/dev

0 comments on commit edc7713

Please sign in to comment.