-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
55 lines (55 loc) · 1.53 KB
/
Copy pathdocker-compose-dev.yml
File metadata and controls
55 lines (55 loc) · 1.53 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
services:
agent:
image: tldevde/dockinv-agent:latest
build:
context: ./agent
dockerfile: Dockerfile
command: flask --app agent --debug run --host 0.0.0.0 --port 9999
restart: always
ports:
- "9999:9999"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
HTTP_TOKEN: your_secret
server:
image: tldevde/dockinv-server:latest
build:
context: ./server
dockerfile: Dockerfile
command: flask --debug run --host 0.0.0.0 --port 8000
restart: always
ports:
- "127.0.0.1:8000:8000"
depends_on:
- redis
environment:
- DATABASE_AUTO_UPGRADE=1
- HOSTS_ADD_DEV_AGENT=1
volumes:
- ./data:/data
- ./server:/app
worker:
image: tldevde/dockinv-server:latest
build:
context: ./server
dockerfile: Dockerfile
command: celery -b redis://redis:6379/0 -A tasks worker -l info -B -s /tmp/celerybeat-schedule
restart: always
environment:
- TASK_TRIVY_INTERVAL=100
- TASK_XEOL_INTERVAL=100
- TASK_DATA_COLLECTOR_INTERVAL=1
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
depends_on:
- redis
volumes:
- ./data:/data
- ./server:/app
- /var/run/docker.sock:/var/run/docker.sock:ro
- ~/.docker/config.json:/home/dockinv/.docker/config.json:ro # mount your config.json file to get access to private docker images
redis:
image: redis:7-alpine
ports:
- "127.0.0.1:6379:6379"