-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-cloud-tools.yml
64 lines (64 loc) · 1.53 KB
/
docker-cloud-tools.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
mongo:
environment:
- AWS_DEFAULT_REGION=eu-west-1
- AWS_S3_BUCKET_NAME=turistforeningen
- AWS_S3_BUCKET_PATH=/backups/mongo/
- 'MONGO_RS_MEMBERS=mongo-01,mongo-02'
- 'MONGO_RS_ARBITERS=mongo-03'
image: 'turistforeningen/docker-mongo:latest'
links:
- 'mongo-01.mongo-rs:mongo-01'
- 'mongo-02.mongo-rs:mongo-02'
- 'mongo-03.mongo-rs:mongo-03'
tags:
- app
- volume-2
volumes_from:
- 'secrets:ro'
mongo-backup-s3:
autoredeploy: true
environment:
- BACKUP_INTERVAL=1
- FILE_PREFIX=mongo-backup-
- MONGO_DB=verdandi-prod
- 'MONGO_HOST=rs0/mongo-01,mongo-02,mongo-03'
- S3_BUCKET=turistforeningen
- S3_PATH=backups/mongo/
image: 'turistforeningen/mongo-backup-s3:latest'
links:
- 'mongo-01.mongo-rs:mongo-01'
- 'mongo-02.mongo-rs:mongo-02'
- 'mongo-03.mongo-rs:mongo-03'
restart: always
tags:
- app
- volume-2
volumes_from:
- 'secrets:ro'
nosqlclient:
command: /app/run.sh
environment:
- 'MONGO_URL=mongodb://mongo:27017'
- MONGOCLIENT_AUTH=true
- 'VIRTUAL_HOST=http://nosqlclient.app.dnt.no*,https://nosqlclient.app.dnt.no*'
- VIRTUAL_HOST_WEIGHT=20
- VIRTUAL_PORT=3000
expose:
- '3000'
image: 'turistforeningen/nosqlclient:latest'
links:
- 'mongo-01.mongo-rs:mongo-01'
- 'mongo-02.mongo-rs:mongo-02'
- 'mongo-03.mongo-rs:mongo-03'
tags:
- app
- volume-2
volumes_from:
- 'secrets:ro'
secrets:
image: 'turistforeningen/mongo-secrets:v2'
tags:
- app
- volume-2
volumes:
- /secrets