-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
42 lines (40 loc) · 996 Bytes
/
docker-compose.yaml
File metadata and controls
42 lines (40 loc) · 996 Bytes
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
version: '3.1'
services:
db:
image: mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: example
MYSQL_USER: user
MYSQL_PASSWORD: password
MYSQL_DATABASE: cve_alert_db
ports:
- 3306:3306
volumes:
- data:/var/lib/mysql
fetcher:
image: cve-alert-manager/fetcher
build:
context: .
dockerfile: ./cve-alert-fetcher/Dockerfile
environment:
CVE_ALERT_MANAGER_CVEDATABASE_DATASOURCENAME: "user:password@tcp(db)/cve_alert_db"
volumes:
- ./config:/var/opt/cve-alert-manager
depends_on:
- db
api:
image: cve-alert-manager/api
build:
context: .
dockerfile: ./cve-alert-restapi/
restart: always
environment:
CVE_ALERT_MANAGER_CVEDATABASE_DATASOURCENAME: "user:password@tcp(db)/cve_alert_db"
volumes:
- ./config:/var/opt/cve-alert-manager
depends_on:
- db
volumes:
data: