-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
49 lines (48 loc) · 1.78 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
46
47
48
49
version: "3"
services:
web:
#
# Publish to this node with:
# cobra publish --rolesecret A0EF82AFedB52Eae16b7b3dB8dcCE5bc
#
# Monitor traffic with
# cobra monitor --rolesecret Fcbd6cdF2FB00AED8c4bcedAaC0e25f1
#
image: bsergean/cobra:production
ports:
- "8765:8765"
environment:
- COBRA_REDIS_STARTUP_PROBING_TIMEOUT=10000
- COBRA_REDIS_URLS=redis://redis1
- COBRA_REDIS_CLUSTER=1
- COBRA_HOST=0.0.0.0
- COBRA_PORT=8765
- COBRA_VERBOSE=1
- COBRA_APPS_CONFIG_CONTENT=H4sICLIpO2AAA2ZvbwDNkkuOgzAMQPc9RS4wUhIaGroLkFxjlI8jIlGK4qBef2BmMVlwALyynyXbT7JdV3zeCPm24ZWWIyMkv2fAv5SQih+xQn4lxPRe8B9+Edwc+pwcVGxbzui6uTnhVJHfDVWdwYaq/ORU6gEBZqgAgs9QnqQRNtiBChq5pMYowSJvuij5yFXLVHs4TmDnMp1I1o1LWzrHHjp2Y+x6iNRo30ptqYmM3kdl2HBY7rv3k04s68alLRXVRnJlIPSCawusdQ/XhF4GP2jh/GGJxRY8kaz4pR2Nd6H1wXDTU6r0KP3deQhq/2HgIrLbD2womVuaAwAA
- PYTHONUNBUFFERED=1
- PYTHONPATH=/etc/secret-volume
healthcheck:
#
# Run healthcheck externally with:
# cobra health --rolesecret bb17Ef9Df9Bef0FEc68Ea0Ff104DAF1C
#
interval: 30s
volumes:
#
# To run in an environment similar to kubernete:
# 1. mkdir /tmp/volume_cobra
# 2. make sure /tmp is 'mountable' in Docker desktop
# 3. run: cobra init
# 4. cp $HOME/.cobra.yaml /tmp/volume_cobra/apps.yaml
# That file will be seen as /etc/secret-volume/apps.yaml in the container ran by docker-compose
#
# Alternatively, you can set COBRA_APPS_CONFIG_CONTENT.
# Note: we could set ${PWD} for the local (dev machine) folder to be mounted, and check-in a cobra config file
#
- /tmp/volume_cobra:/etc/secret-volume
depends_on:
- redis1
redis1:
ports:
- "10000:6379"
image: redis:alpine