forked from BretFisher/dogvscat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstack-rexray.yml
28 lines (25 loc) · 865 Bytes
/
stack-rexray.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
version: "3.5"
# 1. WORKAROUND: would prefer this use null network driver, will use bride for now to avoid overlay
# 2. TODO: would prefer on-failure restart_policy, but need to run this in script to look
# for if plugin exists first before reinstalling
# 3. TODO: would prefer this picks a driver version, and support driver updates
services:
plugin-rexray:
image: mavenugo/swarm-exec:17.03.0-ce
networks:
- bridge
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: docker plugin install --grant-all-permissions rexray/dobs DOBS_REGION=nyc3 DOBS_TOKEN="${REXRAY_DO_TOKEN}" DOBS_CONVERTUNDERSCORES=true
# TODO: make token a secret
deploy:
mode: global
restart_policy:
condition: none
logging:
options:
max-size: "500k"
networks:
bridge:
external: true
name: bridge