forked from DefectDojo/django-DefectDojo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdc-up.sh
More file actions
executable file
·29 lines (24 loc) · 694 Bytes
/
dc-up.sh
File metadata and controls
executable file
·29 lines (24 loc) · 694 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
#!/bin/bash
unset PROFILE
bash ./docker/docker-compose-check.sh
if [[ $? -eq 1 ]]; then exit 1; fi
if [ $# -eq 0 ]; then
if [ -z $DD_PROFILE ]
then
echo "No profile supplied, running default: mysql-rabbitmq"
PROFILE="mysql-rabbitmq"
echo "Other supported profiles:
mysql-rabbitmq*
mysql-redis
postgres-rabbitmq
postgres-redis
Usage example: ./dc-up.sh mysql-redis
"
else
PROFILE=$DD_PROFILE
fi
else
PROFILE=$1
fi
echo "Starting docker compose with profile $PROFILE in the foreground ..."
docker-compose --profile $PROFILE --env-file ./docker/environments/$PROFILE.env up --no-deps