-
-
Notifications
You must be signed in to change notification settings - Fork 101
/
docker-compose.dev.yml
105 lines (100 loc) · 3.39 KB
/
docker-compose.dev.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
###***add in args here and update to version 3 if it's possible with nvidia runtime
version: '2.1'
services:
redis:
image: "redis:latest"
container_name: "redis"
hostname: "redis"
networks:
- crackq_net
ports:
- "127.0.0.1:6379:6379"
#volumes:
# - /var/crackq/:/var/crackq
crackq:
image: "opencl-crackq"
ports:
- "127.0.0.1:8080:8080"
depends_on:
- redis
networks:
- crackq_net
container_name: "crackq"
hostname: "crackq"
volumes:
- /var/crackq/:/var/crackq
- ./crackq:/opt/crackq/build/crackq/
stdin_open: true
user: crackq
tty: true
environment:
PYTHONPATH: "/opt/crackq/build/"
MAIL_USERNAME: ${MAIL_USERNAME}
MAIL_PASSWORD: ${MAIL_PASSWORD}
command:
#sh -c "/bin/bash"
sh -c "pip3 install -e . --user && cd ./crackq
&& python3 -c 'from crackq import hash_modes; hash_modes.HModes.update_modes()'
&& /usr/local/bin/circusd /opt/crackq/build/circus.ini"
nginx:
build:
context: .
dockerfile: Dockerfile.nginx
image: "nginx-crackq"
restart: always
depends_on:
- crackq
container_name: "nginx"
hostname: "nginx"
cap_add:
- NET_ADMIN
ports:
- "443:443"
volumes:
- /var/crackq/files/nginx/conf.d:/etc/nginx/conf.d
- /var/crackq/logs/nginx/:/var/log/nginx/
networks:
- crackq_net
openldap:
image: osixia/openldap:1.3.0
environment:
LDAP_LOG_LEVEL: "256"
LDAP_ORGANISATION: "Example Inc."
LDAP_DOMAIN: "example.org"
LDAP_BASE_DN: ""
LDAP_ADMIN_PASSWORD: "chu437hnjdG8LmsEchsdfu7u4283915fdJ"
LDAP_CONFIG_PASSWORD: "config"
LDAP_READONLY_USER: "false"
LDAP_RFC2307BIS_SCHEMA: "false"
LDAP_BACKEND: "mdb"
LDAP_TLS: "true"
LDAP_TLS_CRT_FILENAME: "ldap.crt"
LDAP_TLS_KEY_FILENAME: "ldap.key"
LDAP_TLS_DH_PARAM_FILENAME: "dhparam.pem"
LDAP_TLS_CA_CRT_FILENAME: "ca.crt"
LDAP_TLS_ENFORCE: "false"
LDAP_TLS_CIPHER_SUITE: "SECURE256:-VERS-SSL3.0"
LDAP_TLS_PROTOCOL_MIN: "3.1"
LDAP_TLS_VERIFY_CLIENT: "try"
LDAP_REPLICATION: "false"
KEEP_EXISTING_CONFIG: "false"
LDAP_REMOVE_CONFIG_AFTER_SETUP: "true"
LDAP_SSL_HELPER_PREFIX: "ldap"
tty: true
stdin_open: true
volumes:
- /var/lib/ldap
- /etc/ldap/slapd.d
- /container/service/slapd/assets/certs/
- ./docker/openldap/bootstrap:/container/service/slapd/assets/config/bootstrap/ldif/custom
command: --copy-service --loglevel debug
container_name: "ldap.crackq.org"
hostname: "ldap.crackq.org"
domainname: "ldap.crackq.org"
ports:
- "127.0.0.1:389:389"
- "127.0.0.1:636:636"
networks:
- crackq_net
networks:
crackq_net: