-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbackup.yml
89 lines (81 loc) · 2.03 KB
/
backup.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# 104
version: '3.0'
services:
minio:
image: minio/minio
container_name: minio
volumes:
- ${VOLUME_ROOT}/minio:/data
ports:
- "8000:9000"
- "8001:9001"
environment:
MINIO_ROOT_USER: ${MINIO_ACCESS_KEY}
MINIO_ROOT_PASSWORD: ${MINIO_SECRET_KEY}
command: server --console-address ":9001" /data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
restart: unless-stopped
portainer_edge_agent:
image: portainer/agent
container_name: portainer_agent
command: -H unix:///var/run/docker.sock
volumes:
- /:/host
- /var/lib/docker/volumes:/var/lib/docker/volumes
- /var/run/docker.sock:/var/run/docker.sock
- ${VOLUME_ROOT}/portainer_agent:/data
environment:
- EDGE=1
- EDGE_ID=${EDGE_ID_BACKUP}
- EDGE_KEY=${EDGE_KEY_BACKUP}
- EDGE_INSECURE_POLL=1
restart: unless-stopped
# To create bucket/user
# --------------------
# mc config host add mycloud [url]
# mc ls mycloud
# mc mb mycloud/guest
# vi user.json
# mc admin policy add mycloud user user.json
# mc admin policy info mycloud user
# mc admin user add mycloud guest [password]
# mc admin policy set mycloud user user=guest
# mc admin user list mycloud --json
# user.json
# {
# "Version": "2012-10-17",
# "Statement": [
# {
# "Action": [
# "s3:PutBucketPolicy",
# "s3:GetBucketPolicy",
# "s3:DeleteBucketPolicy",
# "s3:ListAllMyBuckets",
# "s3:ListBucket"
# ],
# "Effect": "Allow",
# "Resource": [
# "arn:aws:s3:::guest"
# ],
# "Sid": ""
# },
# {
# "Action": [
# "s3:AbortMultipartUpload",
# "s3:DeleteObject",
# "s3:GetObject",
# "s3:ListMultipartUploadParts",
# "s3:PutObject"
# ],
# "Effect": "Allow",
# "Resource": [
# "arn:aws:s3:::guest/*"
# ],
# "Sid": ""
# }
# ]
# }