Skip to content

Commit

Permalink
Add Maslow to GOV.UK Docker
Browse files Browse the repository at this point in the history
- Platform Health are upgrading this app to Rails 6, so I felt it was a
  good idea to make it runnable with GOV.UK Docker like the rest of the
  apps.
  • Loading branch information
issyl0 committed Feb 5, 2020
1 parent 1770a32 commit 11934db
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 1 deletion.
1 change: 1 addition & 0 deletions docker-compose.yml
Expand Up @@ -95,6 +95,7 @@ services:
- link-checker-api.dev.gov.uk
- manuals-frontend.dev.gov.uk
- mapit.dev.gov.uk
- maslow.dev.gov.uk
- publisher.dev.gov.uk
- publishing-api.dev.gov.uk
- release.dev.gov.uk
Expand Down
2 changes: 1 addition & 1 deletion docs/compatibility.md
Expand Up @@ -53,7 +53,7 @@ The following apps are supported by govuk-docker to some extent.
- ❌ manuals-publisher
- ✅ mapit
* TODO: Data replication.
- maslow
- maslow
- ✅ miller-columns-element
- ✅ plek
- ✅ publisher
Expand Down
2 changes: 2 additions & 0 deletions projects/maslow/Makefile
@@ -0,0 +1,2 @@
maslow: bundle-maslow publishing-api
$(GOVUK_DOCKER) run $@-lite sh -c 'bin/rake db:migrate 2>/dev/null || bin/rake db:setup'
37 changes: 37 additions & 0 deletions projects/maslow/docker-compose.yml
@@ -0,0 +1,37 @@
version: '3.7'

x-maslow: &maslow
build:
context: .
dockerfile: Dockerfile.govuk-base
image: maslow
stdin_open: true
tty: true
volumes:
- ${GOVUK_ROOT_DIR:-~/govuk}:/govuk:delegated
- home:/home/build
working_dir: /govuk/maslow

services:
maslow-lite:
<<: *maslow
privileged: true
depends_on:
- mongo
environment:
MONGODB_URI: "mongodb://mongo/maslow"
TEST_MONGODB_URI: "mongodb://mongo/maslow-test"

maslow-app: &maslow-app
<<: *maslow
depends_on:
- mongo
- nginx-proxy
- publishing-api-app
environment:
MONGODB_URI: "mongodb://mongo/maslow"
VIRTUAL_HOST: maslow.dev.gov.uk
HOST: 0.0.0.0
expose:
- "3000"
command: bin/rails s --restart

0 comments on commit 11934db

Please sign in to comment.