-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.commands.yml
39 lines (35 loc) · 1.5 KB
/
docker-compose.commands.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
## Defines commands we can run from containers
services:
dr-restore:
build:
context: ./disaster-recovery/restore
dockerfile: Dockerfile
environment:
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
AWS_SESSION_TOKEN: $AWS_SESSION_TOKEN
volumes:
- ./disaster_recovery/restore/disaster_recovery.py:/disaster_recovery.py
dr-backup:
build:
context: ./disaster-recovery/backup
dockerfile: Dockerfile
zap-admin:
image: softwaresecurityproject/zap-stable
volumes:
- "./zap/:/zap/wrk/"
command: bash -c "zap.sh -cmd -addonupdate -addoninstall pscanrules -addoninstall pscanrulesBeta -addoninstall pscanrulesAlpha -addoninstall ascanrules -addoninstall ascanrulesBeta -addoninstall ascanrulesAlpha; zap.sh -cmd -autorun /zap/wrk/zap-digideps-admin.yaml"
zap-front:
image: softwaresecurityproject/zap-stable
volumes:
- "./zap/:/zap/wrk/"
command: bash -c "zap.sh -cmd -addonupdate -addoninstall pscanrules -addoninstall pscanrulesBeta -addoninstall pscanrulesAlpha -addoninstall ascanrules -addoninstall ascanrulesBeta -addoninstall ascanrulesAlpha; zap.sh -cmd -autorun /zap/wrk/zap-digideps-front.yaml"
sql-custom-command:
build:
context: ./scripts/custom_sql_query
dockerfile: Dockerfile
environment:
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
AWS_SESSION_TOKEN: $AWS_SESSION_TOKEN
WORKSPACE: $WORKSPACE