diff --git a/docker-compose.yml b/docker-compose.yml index c842a351..a7d1c1f6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 diff --git a/docs/compatibility.md b/docs/compatibility.md index 8d0427e1..ba0965be 100644 --- a/docs/compatibility.md +++ b/docs/compatibility.md @@ -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 diff --git a/projects/govuk-chat/Makefile b/projects/govuk-chat/Makefile new file mode 100644 index 00000000..0a5177b8 --- /dev/null +++ b/projects/govuk-chat/Makefile @@ -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 diff --git a/projects/govuk-chat/docker-compose.yml b/projects/govuk-chat/docker-compose.yml new file mode 100644 index 00000000..86b2be23 --- /dev/null +++ b/projects/govuk-chat/docker-compose.yml @@ -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