Skip to content

Commit

Permalink
🐳 config(docker): First draft for deployment via docker compose.
Browse files Browse the repository at this point in the history
This is missing `oplog: true` from the existing `mup` configuration I
think.
  • Loading branch information
make-github-pseudonymous-again committed Apr 17, 2024
1 parent 77e7767 commit 4e2b9c3
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .deploy/ghcr.io/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
IMAGE_TAG=latest

HTTP_FORWARDED_COUNT=2
4 changes: 4 additions & 0 deletions .deploy/ghcr.io/compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
services:
patient-web:
build: !reset null
image: ghcr.io/infoderm/patients:${IMAGE_TAG}
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ PORT=3000

MONGO_VERSION=5.0
MONGO_URL=mongodb://patient-db:27017/meteor

HTTP_FORWARDED_COUNT=1
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,16 @@ Install dependencies, custom certificates, and MongoDB on server:

TAG=vYYYY.MM.DD meteor npm run deploy

#### Generate a Docker `compose` configuration

:construction: This is work in progress. :construction:

ROOT_URL=https://example.local IMAGE_TAG=v1 \
docker compose \
--env-file .env -f compose.yaml \
--env-file .deploy/ghcr.io/.env -f .deploy/ghcr.io/compose.yaml \
config

## :recycle: Backup & Restore

The current backup system requires `age` and the encryption/decryption key at
Expand Down
1 change: 1 addition & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ services:
- ROOT_URL=${ROOT_URL}
- PORT=${PORT}
- MONGO_URL=${MONGO_URL}
- HTTP_FORWARDED_COUNT=${HTTP_FORWARDED_COUNT}
depends_on:
patient-db:
condition: service_healthy
Expand Down

0 comments on commit 4e2b9c3

Please sign in to comment.