-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
33 lines (31 loc) · 973 Bytes
/
compose.yaml
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
services:
backend:
depends_on:
- mongodb
environment:
ADMIN_GROUPS: admin
CREATE_DATASET_GROUPS: admin
DELETE_GROUPS: admin
EXPRESS_SESSION_SECRET: secret
JWT_SECRET: secret
MONGODB_URI: mongodb://mongodb:27017/dacat-next
PROPOSAL_GROUPS: proposalingestor
SAMPLE_GROUPS: ingestor
SITE: FACILITY
PID_PREFIX: PID.SAMPLE.PREFIX
image: ghcr.io/scicatproject/backend-next:255ee9e8406e87954611a0227465c210dcd604dc
command: sh -c '. /db_migration.sh; node dist/main'
volumes:
- ./config/backend/functionalAccounts.json:/home/node/app/functionalAccounts.json
- ./config/backend/db_migration.sh:/db_migration.sh
ports:
- 3000:3000
mongodb:
image: mongo:7.0
volumes:
- backend_mongodb_data:/data/db
- ./config/mongodb/init.sh:/docker-entrypoint-initdb.d/init.sh
- ./config/mongodb/seed:/seed
volumes:
backend_mongodb_data:
driver: local