-
Notifications
You must be signed in to change notification settings - Fork 86
/
Copy pathdocker-compose.yaml
executable file
·57 lines (57 loc) · 1.43 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
version: "3.7"
services:
web-server:
build:
dockerfile: php.Dockerfile
context: .
restart: always
volumes:
- "./certs/ssl/:/etc/apache2/ssl/"
- "./Responder/logs/:/var/log/Responder/"
- "./html/:/var/www/html/"
- type: bind
source: ./conf/.htpasswd
target: /var/www/.htpasswd
- type: bind
source: ./conf/apache2.conf
target: /etc/apache2/apache2.conf
- type: bind
source: ./conf/000-default-le-ssl.conf
target: /etc/apache2/sites-enabled/000-default-le-ssl.conf
- type: bind
source: ./conf/php.ini
target: /usr/local/etc/php/php.ini
ports:
- "80:80"
- "443:443"
python:
build:
dockerfile: python.Dockerfile
context: .
restart: always
volumes:
- "./Responder/logs/:/logs/"
ports:
- "445:445"
- "137:137"
- "138:138"
- "139:139"
database:
build:
dockerfile: mysql.Dockerfile
context: .
image: mysql:8.0
restart: always
environment:
- MYSQL_ROOT_PASSWORD=password
# - MYSQL_DATABASE=fakesite
- MYSQL_USER=user
- MYSQL_PASSWORD=password
volumes:
- ./mysql_data:/var/lib/mysql
- ./db/:/docker-entrypoint-initdb.d/
command: --default-authentication-plugin=mysql_native_password
ports:
- "3306:3306"
volumes:
mysql_data: