-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (43 loc) · 1.06 KB
/
docker-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
38
39
40
41
42
43
44
45
version: "3.7"
services:
server:
image: pegasis0/fetch-ta:latest
restart: always
depends_on:
- "mongo"
volumes:
- data:/server/data
ports:
- 5006:5004
- 5007:5005
- 5008:5006
entrypoint: java -XX:-OmitStackTraceInFastThrow -jar fetch_ta_data.jar server --db-host mongo --db-user root --db-password password -p
mongo:
image: mongo:4.2-bionic
restart: always
ports:
- 27017:27017
volumes:
- mongo:/data/db
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: password
backup:
image: pegasis0/mongodb_s3_backup:latest
restart: always
depends_on:
- "mongo"
environment:
ACCESS_ID: access_id
ACCESS_KEY: access_key
BUCKET: backup.pegasis
BACKUP_S3_DIR: ta-backup/
REGION_NAME: nyc3
ENDPOINT_URL: https://nyc3.digitaloceanspaces.com
MONGODB_URI: mongodb://root:password@mongo
BACKUP_LIST: daily,weekly
BACKUP_daily: 0 0 3|14
BACKUP_weekly: 0 30 3 * * 6|52
volumes:
data:
mongo: