-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
37 lines (32 loc) · 986 Bytes
/
compose.yml
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
version: '3.1'
services:
intact-backend:
image: hicsail/intact-backend:main
ports:
- "1333:8000"
environment:
STUDY_URL_PREFIX: ${STUDY_URL_PREFIX}
DB_NAME: ${DB_NAME}
DB_CONNECTION_STR: ${DB_CONNECTION_STR}
ADMIN_PASSWORD: ${ADMIN_PASSWORD}
CORS_FRONTEND_ORIGIN: ${CORS_FRONTEND_ORIGIN}
mongo:
image: mongo:8
restart: always
volumes:
- intact-backend-mongo-data-staging:/data/db
backup:
image: offen/docker-volume-backup:v2.43.0
restart: always
environment:
BACKUP_CRON_EXPRESSION: "50 7 * * *"
BACKUP_RETENTION_DAYS: 120
AWS_S3_BUCKET_NAME: sail-data-backups
AWS_S3_PATH: intact-backend-mongo-data-staging
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
volumes:
- intact-backend-mongo-data-staging:/backup/intact-backend-mongo-data-staging:ro
volumes:
intact-backend-mongo-data-staging:
external: true