-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds govuk-chat repo to available apps
- 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
Showing
4 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |