forked from netskopeoss/ta_cloud_exchange
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
104 lines (104 loc) · 3.09 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
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
version: "3.3"
services:
rabbitmq-stats:
image: index.docker.io/bitnami/rabbitmq:3.8
environment:
- RABBITMQ_NODE_TYPE=stats
- RABBITMQ_NODE_NAME=rabbit@rabbitmq-stats
- RABBITMQ_ERL_COOKIE=s3cr3tc00ki3
- RABBITMQ_SECURE_PASSWORD=yes
- RABBITMQ_DISK_FREE_ABSOLUTE_LIMIT=1
restart: on-failure:5
volumes:
- ./data/rabbitmq/custom.conf:/bitnami/rabbitmq/conf/custom.conf:z
ports:
- '15672:15672'
- '5672:5672'
logging:
options:
max-size: "10m"
max-file: "5"
deploy:
resources:
limits:
memory: 2G
mongodb-primary:
image: index.docker.io/bitnami/mongodb:4.4
volumes:
- ./data/mongo-data:/bitnami/mongodb:z
environment:
- MONGODB_ADVERTISED_HOSTNAME=mongodb-primary
- MONGODB_ROOT_PASSWORD=password123
- MONGODB_USERNAME=${MONGODB_USERNAME}
- MONGODB_PASSWORD=${MONGODB_PASSWORD}
- MONGODB_DATABASE=cte
restart: on-failure:5
ports:
- '27017:27017'
logging:
options:
max-size: "10m"
max-file: "5"
core:
image: index.docker.io/${CORE_TAG}
volumes:
- ./data/custom_plugins:/opt/netskope/plugins/custom_plugins:z
- /var/run/docker.sock:/var/run/docker.sock
environment:
- MONGO_CONNECTION_STRING=mongodb://${MONGODB_USERNAME}:${MONGODB_PASSWORD}@mongodb-primary:27017/cte
- RABBITMQ_CONNECTION_STRING=amqp://user:bitnami@rabbitmq-stats
- JWT_SECRET=${JWT_SECRET}
- JWT_ALGORITHM=HS256
- ENABLE_CELERY_BEAT=true
#- DOCKER_USERNAME=${DOCKER_USERNAME}
#- DOCKER_PASSWORD=${DOCKER_PASSWORD}
- WATCHTOWER_HTTP_API_TOKEN=${WATCHTOWER_TOKEN}
- ANALYTICS_BASE_URL=https://reporting.netskope.tech
- ANALYTICS_TOKEN=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpbnN0YWxsYXRpb25faWQiOiJjMDAyIn0.w8SVrTcDjk8PkR4IcbWGwOyf6-OWfCUyOoCTgZvqHqc
- MAX_MAINTENANCE_WINDOW_MINUTES=${MAX_MAINTENANCE_WINDOW_MINUTES}
- PULL_THREADS=${PULL_THREADS}
- MAX_WAIT_ON_LOCK_IN_MINUTES=${MAX_WAIT_ON_LOCK_IN_MINUTES}
restart: on-failure:5
logging:
options:
max-size: "10m"
max-file: "5"
depends_on:
- mongodb-primary
- rabbitmq-stats
labels:
- com.centurylinklabs.watchtower.enable=true
ui:
image: index.docker.io/${UI_TAG}
restart: on-failure:5
environment:
- CE_API_URL=http://core
volumes:
- ./data/ssl_certs:/tmp/ssl_certs:z
ports:
- ${UI_PORT}:3000
links:
- core
labels:
- com.centurylinklabs.watchtower.enable=true
logging:
options:
max-size: "10m"
max-file: "5"
watchtower:
image: index.docker.io/containrrr/watchtower:1.3.0
volumes:
- /var/run/docker.sock:/var/run/docker.sock
# - /root/.docker/config.json:/config.json
environment:
- WATCHTOWER_HTTP_API=true
- WATCHTOWER_HTTP_API_TOKEN=${WATCHTOWER_TOKEN}
- WATCHTOWER_LABEL_ENABLE=true
restart: on-failure:5
ports:
- 8080:8080
command: --http-api-update
logging:
options:
max-size: "10m"
max-file: "5"