-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yaml
executable file
·62 lines (55 loc) · 1.78 KB
/
docker-compose.yaml
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
version: '3'
services:
#mysql container
contrast-database:
#platform: linux/x86_64 #uncomment this line for ARM based systems like M1/2 Macs
image: mysql:8.0.30
command: --log-bin-trust-function-creators=ON
cap_add:
- SYS_NICE # CAP_SYS_NICE
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
- MYSQL_DATABASE=contrast
- MYSQL_USER=contrast
- MYSQL_PASSWORD=default1!
ports:
- '3306'
#Teamserver container
contrast:
image: ghcr.io/contrast-security-inc/contrast:latest
depends_on:
- contrast-database
ports:
- 8080:8080
environment:
# LICENCE Setup:
- CONTRAST_LICENSE=${CONTRAST_LICENSE} #loaded via ENV
# Use Hub account to pull license
# - CONTRAST_HUB_USERNAME=<EMAIL>
# - CONTRAST_HUB_PASSWORD=<PASSWORD>
# MySQL Setup:
# FOR REMOTE MySQL
# - CONTRAST_JDBC_URL=jdbc:mysql://<DNS of MYSQL>:3306/contrast
# - CONTRAST_JDBC_USER=contrast
# - CONTRAST_JDBC_PASS=<PASSWORD>
# FOR LOCALHOST MySQL
# - CONTRAST_JDBC_URL=jdbc:mysql://host.docker.internal:3306/contrast
# - CONTRAST_JDBC_USER=contrast
# - CONTRAST_JDBC_PASS=<PASSWORD>
# For a MySQL Container --Uncomment 6 thru 15 and 20 & 21 along with the lines below.
- CONTRAST_JDBC_URL=jdbc:mysql://contrast-database:3306/contrast
- CONTRAST_JDBC_USER=contrast
- CONTRAST_JDBC_PASS=default1!
# SAML Setup
# - CONTRAST_AUTHENTICATOR_SAML_KEYSTORE_PASSWORD=changeit
# - CONTRAST_AUTHENTICATOR_SAML_KEYSTORE_PASSWORDMAP=some-alias=changeit
volumes:
- ./conf:/opt/contrast/data/conf
deploy:
resources:
limits:
cpus: "2.0"
memory: 8g
reservations:
cpus: "1.0"
memory: 4g