-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathpodman-compose.yml
138 lines (138 loc) · 4.14 KB
/
podman-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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
version: "3.3"
services:
rabbitmq-stats:
image: index.docker.io/rabbitmq:3.13.1-management
user: "1001:1001"
env_file:
- ./.env
- ${LOCATION}
environment:
- RABBITMQ_NODENAME=rabbit@rabbitmq-stats
- RABBITMQ_DEFAULT_USER=user
- RABBITMQ_DISK_FREE_LIMIT_ABSOLUTE=1
- RABBITMQ_RAM_RESOURCES=${RABBITMQ_RAM_RESOURCES:-3072}
restart: always
volumes:
- ./data/rabbitmq/custom.conf:/etc/rabbitmq/conf.d/custom.conf:z
- ./data/rabbitmq/data:/var/lib/rabbitmq/mnesia:z
logging:
options:
max-size: "10m"
max-file: "5"
deploy:
resources:
limits:
memory: ${RABBITMQ_RAM_RESOURCES:-3072}M
entrypoint: ["/bin/bash","-c","echo ${RABBITMQ_COOKIE} > /var/lib/rabbitmq/.erlang.cookie && chmod 600 /var/lib/rabbitmq/.erlang.cookie && docker-entrypoint.sh rabbitmq-server"]
mongodb-primary:
image: index.docker.io/mongo:6.0.12
user: mongodb
env_file:
- ./.env
- ${LOCATION}
volumes:
- ./data/mongo-data/data/db:/data/db:z
- ./data/database-init/mongo-init.sh:/docker-entrypoint-initdb.d/mongo-init.sh:z
environment:
- MONGODB_ADVERTISED_HOSTNAME=mongodb-primary
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_DATABASE=cte
- MONGODB_USERNAME=cteadmin
- HTTP_PROXY=${CORE_HTTP_PROXY}
- HTTPS_PROXY=${CORE_HTTPS_PROXY}
restart: always
logging:
options:
max-size: "10m"
max-file: "5"
deploy:
resources:
limits:
memory: ${MONGODB_RAM_RESOURCES:-3072}M
core:
image: index.docker.io/${CORE_TAG}
env_file:
- ./.env
- ${LOCATION}
volumes:
- ./data/custom_plugins:/opt/netskope/plugins/custom_plugins:z
- ./data/ca_certs:/usr/local/share/ca-certificates:z
- ./data/rabbitmq/data:/var/lib/rabbitmq:z
- nfs_repos:/opt/netskope/repos
- nfs_plugins:/opt/netskope/plugins
environment:
- JWT_SECRET=${JWT_SECRET}
- JWT_ALGORITHM=HS256
- ENABLE_CELERY_BEAT=true
- DOCKER_USERNAME=${DOCKER_USERNAME:-}
- DOCKER_PASSWORD=${DOCKER_PASSWORD:-}
- CORE_TAG=${CORE_TAG}
- UI_TAG=${UI_TAG}
- CORE_LATEST_VERSION_TAG=${CORE_LATEST_VERSION_TAG}
- UI_LATEST_VERSION_TAG=${UI_LATEST_VERSION_TAG}
- WATCHTOWER_HTTP_API_TOKEN=${WATCHTOWER_TOKEN}
- ANALYTICS_BASE_URL=https://reporting.netskope.tech
- ANALYTICS_TOKEN=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpbnN0YWxsYXRpb25faWQiOiJjMDAyIn0.w8SVrTcDjk8PkR4IcbWGwOyf6-OWfCUyOoCTgZvqHqc
- ANALYTICS_SERVER_CONNECTIVITY=${ANALYTICS_SERVER_CONNECTIVITY:-True}
- MAX_MAINTENANCE_WINDOW_MINUTES=${MAX_MAINTENANCE_WINDOW_MINUTES}
- PULL_THREADS=${PULL_THREADS}
- MAX_WAIT_ON_LOCK_IN_MINUTES=${MAX_WAIT_ON_LOCK_IN_MINUTES}
- HTTP_PROXY=${CORE_HTTP_PROXY}
- HTTPS_PROXY=${CORE_HTTPS_PROXY}
- BETA_OPT_IN=${BETA_OPT_IN}
- REQUESTS_TIMEOUT=${REQUESTS_TIMEOUT}
- POPEN_TIMEOUT=${POPEN_TIMEOUT}
# - PLUGIN_TIMEOUT_MINUTES=240
# - ENABLE_DEBUG=True
# - UI_SERVICE_NAME=
# - THRESHOLD_FOR_IDLE_CHECK_IN_MINUTES=
restart: always
logging:
options:
max-size: "10m"
max-file: "5"
deploy:
resources:
limits:
memory: ${CORE_RAM_RESOURCES:-3072}M
depends_on:
- mongodb-primary
- rabbitmq-stats
labels:
- com.centurylinklabs.watchtower.enable=true
ui:
image: index.docker.io/${UI_TAG}
restart: always
environment:
- CE_API_URL=http://core
- CE_API_PORT=8000
- TLS_VERSION=${ENABLE_TLS_V_1_2:-TLSv1.3}
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"
deploy:
resources:
limits:
memory: ${UI_RAM_RESOURCES:-256}M
volumes:
nfs_repos:
driver: local
driver_opts:
type: none
o: bind
device: ./data/repos
nfs_plugins:
driver: local
driver_opts:
type: none
o: bind
device: ./data/plugins