-
Notifications
You must be signed in to change notification settings - Fork 113
/
common-services.yml
76 lines (76 loc) · 1.96 KB
/
common-services.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
version: '3'
services:
redis_common:
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_common:
restart: always
image: thinkst/canarytokens
build: ./canarytokens
ports:
- "8082:8082"
env_file:
- frontend.env
volumes:
- ./frontend.env:/srv/frontend/frontend.env:ro
- ./switchboard.env:/srv/switchboard/switchboard.env:ro
- ./uploads:/uploads/
- log-volume:/logs
container_name: frontend
command: bash -c "cd frontend; poetry run python -m uvicorn app:app --host 0.0.0.0 --port 8082"
switchboard_common:
restart: always
image: thinkst/canarytokens
build: ./canarytokens
ports:
- "25:2500"
- "3306:3306"
- "53:5354"
- "53:5354/udp"
- "6443:6443"
- "8083:8083"
- "51820:51820/udp"
env_file:
- switchboard.env
volumes:
- ./frontend.env:/srv/frontend/frontend.env:ro
- ./switchboard.env:/srv/switchboard/switchboard.env:ro
- ./uploads:/uploads/
- log-volume:/logs
container_name: switchboard
command: bash -c "cd switchboard; rm -f switchboard.pid; poetry run twistd -noy switchboard.tac --pidfile=switchboard.pid"
nginx_common_certbot:
restart: always
image: thinkst/certbot-nginx
build: ./certbot-nginx
ports:
- "80:80"
- "443:443"
depends_on:
- "frontend"
- "switchboard"
container_name: nginx
env_file:
- certbot.env
volumes:
- /etc/letsencrypt/:/etc/letsencrypt/
- ./nginx/conf.d:/etc/nginx/conf.d/
nginx_common:
restart: always
image: thinkst/canarytokens_nginx
build: ./nginx
ports:
- "80:80"
depends_on:
- "frontend"
- "switchboard"
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d/
container_name: nginx
command: /usr/sbin/nginx -c /etc/nginx/nginx.conf -g "daemon off;"
volumes:
log-volume: