Repository navigation
Expand file tree
/
Copy path.dockerenv.example
More file actions
87 lines (73 loc) · 4.08 KB
/
Copy path.dockerenv.example
File metadata and controls
87 lines (73 loc) · 4.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
## Environment variables for docker-compose.dev.yml
##
## OPTIONAL: docker-compose.dev.yml ships with working defaults, so a bare
## `docker compose -f docker-compose.dev.yml up` works without this file.
## Copy it to .dockerenv only to override the defaults (custom images,
## volume names, host ports, migration behavior):
## cp .dockerenv.example .dockerenv # then adjust and pass --env-file .dockerenv
## Do not commit .dockerenv to the repository.
## `docker compose --env-file .dockerenv -f docker-compose.dev.yml config`
## will use the values from this file
## Project name
#COMPOSE_PROJECT_NAME=chemotion_eln
## - DOCKER_PG_IMAGE: the image to use as base for the db container
## - DOCKER_DEV_IMAGE: the image to use as base for the app and webpacker containers
## overwriten to '' when using vs decontainer.json to avoid tag conflicts
## Latest available version: https://hub.docker.com/u/complat/dev/tags
## app image with preinstalled asdf plugins(ruby, nodejs), gems and nodejs packages
#DOCKER_DEV_IMAGE=complat/dev:v2.0.1-9-g4aec23261
## DOCKER_PG_IMAGE defaults to the rdkit-enabled rolling image (required:
## schema.rb enables the rdkit extension).
#DOCKER_PG_IMAGE=complat/dev:postgres16-rdkit
## To match a specific production release, use the versioned production DB image
## (also rdkit-enabled — this is the same image the live ChemOrc stack runs):
#DOCKER_PG_IMAGE=${SERVICE_REPO}:db-${ELN_VERSION}
## Plain postgres (no rdkit) — only for a non-rdkit experiment; schema load fails.
#DOCKER_PG_IMAGE=postgres:16
## - VOLUME_NAME_HOMEDIR: Use another named volume for homedir (asdf, gems, etc)
## - VOLUME_NAME_DB: or database
#VOLUME_NAME_HOMEDIR=chemotion_eln_homedir2
#VOLUME_NAME_DB=chemotion_eln_database2
## ENV for the app container
## - RAKE_DB_MIGRATE: use by prepare sh to run db migration (rake db:migrate)
## when starting the app container {always, once, never}
## always: run db migration on every start
## once: run db migration only once after the db is created
## never: never run db migration on start
RAKE_DB_MIGRATE=once
## ENV for docker-compose.services.yml
SERVICE_REPO=ptrxyz/chemotion
ELN_VERSION=2.0.1
## Images for the services
## `cp docker-compose.services.yml.example docker-compose.services.yml` for the latest version
## `docker compose --env-file .dockerenv -f docker-compose.dev.yml -f docker-composer.services.yml config`
IMG_SPECTRA=${SERVICE_REPO}:spectra-${ELN_VERSION}
IMG_CONVERTER=${SERVICE_REPO}:converter-${ELN_VERSION}
IMG_KETCHERSVC=${SERVICE_REPO}:ketchersvc-${ELN_VERSION}
IMG_INDIGO=epmlsop/indigo-service:1.34.0-rc.1
## PDF text service for safety data sheets (opt-in, `--profile pdftext`).
## Defaults to ${SERVICE_REPO}:pdftext-${ELN_VERSION}, not yet released; use the
## dev image meanwhile.
#IMG_PDFTEXT=complat/dev:pdftext
## Image the nmrium-assets service in docker-compose.services.yml copies the
## precompiled NMRium wrapper build out of, into public/nmrium/<tag>/ (served by
## Rails at /nmrium/default/). Installing it is opt-in — see that service's
## comment for the command. .service-dependencies stays the source of truth
## for the version — keep the tag here in sync with its NMRIUMWRAPPER entry.
IMG_NMRIUMWRAPPER=nfdi4chem/nmrium-react-wrapper:v1.2.0
## Origins allowed to drive the wrapper, space- or comma-separated and each with
## its scheme (a scheme-less hostname is dropped on the wrapper side). Ports are
## ignored, so one entry covers every port on that host. Left empty the wrapper
## accepts messages from any origin — set it for anything but local development.
#NMRIUM_ALLOWED_ORIGINS='https://eln.example.org https://1.eln.example.org'
## Keep the wrapper's sourcemaps, which are dropped by default: they multiply
## the installed size several times over and are only useful when debugging the
## wrapper itself, which this setup does not support.
#NMRIUM_SOURCEMAPS=1
## Map ports to host
#HOST_PORT_PG=5432
#HOST_PORT_APP=3000
#HOST_PORT_WEBPACK=3035
# One time password secret key for 2FA (attr_encrypted uses aes-256-gcm, which
# requires a key of at least 32 bytes)
OTP_SECRET_KEY='change-this-to-a-random-32-byte-or-longer-secret'