-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (32 loc) · 929 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
32 lines (32 loc) · 929 Bytes
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
services:
mongo:
image: mongo:8.0
command: ["mongod", "--replSet", "rs0", "--bind_ip_all"]
ports: ["27017:27017"]
volumes: ["fonat-mongo:/data/db"]
healthcheck:
test:
- CMD-SHELL
- >-
mongosh --quiet --eval 'try { rs.status().ok } catch(e) { rs.initiate({_id:"rs0",members:[{_id:0,host:"mongo:27017"}]}); }'
interval: 5s
timeout: 5s
retries: 20
app:
build: .
depends_on:
mongo:
condition: service_healthy
environment:
RUNTIME_PROFILE: production
PORT: 3001
MONGODB_URI: mongodb://mongo:27017/?replicaSet=rs0
MONGODB_DB: fonat
SESSION_SECRET: local-docker-secret-change-before-sharing-123456
PUBLIC_APP_URL: http://localhost:3001
ALLOWED_ORIGINS: http://localhost:3001
FEATURE_PROJECTS: "true"
ASSET_PROFILE: hosted-restricted
ports: ["3001:3001"]
volumes:
fonat-mongo: