-
Notifications
You must be signed in to change notification settings - Fork 513
/
docker-compose.yaml
65 lines (64 loc) · 1.52 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
58
59
60
61
62
63
64
65
version: '3.3'
services:
redis:
image: redis:6.2.6
container_name: redis
volumes:
- ./data/redis_data:/data
command: redis-server --requirepass vulfocus
networks:
- vulfocus
restart: always
vulfocus-api:
image: vulfocus/vulfocus-api:latest
container_name: vulfocus-api
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./data/static:/vulfocus-api/static
- ./data/db.sqlite3:/vulfocus-api/db.sqlite3
environment:
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_PASS: vulfocus
VUL_IP: xxx.xxx.xxx.xxx
networks:
- vulfocus
depends_on:
- redis
restart: always
vulfocus-worker:
image: vulfocus/vulfocus-api:latest
container_name: vulfocus-worker
command: ['celery', 'worker', '-A', 'vulfocus', '-l', 'info']
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./data/static:/vulfocus-api/static
- ./data/db.sqlite3:/vulfocus-api/db.sqlite3
environment:
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_PASS: vulfocus
VUL_IP: xxx.xxx.xxx.xxx
networks:
- vulfocus
depends_on:
- redis
restart: always
vulfocus-web:
image: vulfocus/vulfocus-web:latest
container_name: vulfocus-web
volumes:
- ./data/static:/vulfocus-api/static
ports:
- "80:80"
networks:
- vulfocus
depends_on:
- vulfocus-api
restart: always
networks:
vulfocus:
ipam:
driver: default
config:
- subnet: 172.77.77.0/24