-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
84 lines (82 loc) · 2.43 KB
/
docker-compose.yml
File metadata and controls
84 lines (82 loc) · 2.43 KB
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
version: '3.8'
volumes:
cowrie-var:
driver: local
web-servie-log:
driver: local
rtsp-resource:
driver: local
services:
cowrie_service:
image: cowrie/cowrie:latest
container_name: cowrie-services
restart: unless-stopped
env_file: ./.env
environment:
- COWRIE_LOCAL_PORT=$COWRIE_LOCAL_PORT
- COWRIE_DOCKER_PORT=$COWRIE_DOCKER_PORT
ports:
- ${COWRIE_LOCAL_PORT}:${COWRIE_DOCKER_PORT}
volumes:
- cowrie-var:/cowrie/cowrie-git/var
- ./cowrie-config/cowrie.cfg:/cowrie/cowrie-git/etc/cowrie.cfg
- ./cowrie-config/motd:/cowrie/cowrie-git/honeyfs/etc/motd
mysql_service:
image: mysql:8.0.28
container_name: mysql_service
cap_add:
- SYS_NICE
restart: unless-stopped
env_file: ./.env
environment:
- MYSQL_ROOT_PASSWORD=$MYSQLDB_ROOT_PASSWORD
- MYSQL_DATABASE=$MYSQLDB_DATABASE
ports:
- ${MYSQLDB_LOCAL_PORT}:${MYSQLDB_DOCKER_PORT}
volumes:
- ./initialize.sql:/docker-entrypoint-initdb.d/initialize.sql
web_service:
container_name: web_service
depends_on:
- mysql_service
build: ./webservices # Build the image from the Dockerfile under the webservices folder
restart: unless-stopped
env_file: ./.env
environment:
- DB_HOST=mysql_service
- DB_USER=$MYSQLDB_USER
- DB_PASSWORD=$MYSQLDB_ROOT_PASSWORD
- DB_NAME=$MYSQLDB_DATABASE
- DB_PORT=$MYSQLDB_DOCKER_PORT
- SESSION_SECRET=$SESSION_SECRET
- JWT_SECRET=$JWT_SECRET
- ADMIN_PATH=$ADMIN_PATH
- DEFAULT_ADMIN_NAME=$DEFAULT_ADMIN_NAME
- DEFAULT_ADMIN_PASSWORD=$DEFAULT_ADMIN_PASSWORD
- TELEGRAM_CHAT_ID=$TELEGRAM_CHAT_ID
- TELEGRAM_TOKEN=$TELEGRAM_TOKEN
- EMAIL_ADDRESS=$EMAIL_ADDRESS
- EMAIL_PASSWORD=$EMAIL_PASSWORD
- EMAIL_ADDRESS_TARGET=$EMAIL_ADDRESS_TARGET
- EMAIL_SERVICE=$EMAIL_SERVICE
- EMAIL_HOST=$EMAIL_HOST
ports:
- ${NODE_LOCAL_PORT}:${NODE_DOCKER_PORT}
volumes:
- web-servie-log:/app/webservices/logs
stdin_open: true
tty: true
rtsp_service:
build: ./rtspservices
container_name: rtsp_service
restart: unless-stopped
env_file: ./.env
environment:
- RTSP_LOCAL_PORT=$RTSP_LOCAL_PORT
- RTSP_DOCKER_PORT=$RTSP_DOCKER_PORT
- MTX_PROTOCOLS=$MTX_PROTOCOLS
ports:
- ${RTSP_LOCAL_PORT}:${RTSP_DOCKER_PORT}
volumes:
- ./videos:/app/rtsp/videos
- rtsp-resource:/app/rtsp