-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (54 loc) · 1.25 KB
/
docker-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
version: '2'
services:
redis:
restart: always
image: redis:7.0.10
volumes:
- ./data:/data/
container_name: redis
command: redis-server --appendonly yes --protected-mode no --save 60 1
frontend:
restart: always
image: thinkst/canarytokens:v2_latest
#build: ./canarytokens
links:
- redis
env_file:
- frontend.env
volumes:
- ./uploads:/uploads/
- log-volume:/logs
container_name: frontend
command: bash -c "rm -f frontend.pid; twistd -noy frontend.tac --pidfile=frontend.pid"
switchboard:
restart: always
image: thinkst/canarytokens:v2_latest
# build: ./canarytokens
ports:
- "53:53"
- "53:53/udp"
- "25:25"
- "3306:3306"
- "6443:6443"
- "51820:51820/udp"
links:
- redis
env_file:
- switchboard.env
volumes_from:
- frontend
container_name: switchboard
command: bash -c "rm -f switchboard.pid; twistd -noy switchboard.tac --pidfile=switchboard.pid"
nginx:
restart: always
image: thinkst/canarytokens_nginx
#build: ./nginx
ports:
- "80:80"
links:
- frontend
- switchboard
container_name: nginx
command: /usr/sbin/nginx -c /etc/nginx/nginx.conf -g "daemon off;"
volumes:
log-volume: