17 lines
298 B
Bash
17 lines
298 B
Bash
|
#!/usr/bin/env bash
|
||
|
set -e
|
||
|
WAIT_TIMEOUT=5
|
||
|
|
||
|
# Start the database instance
|
||
|
docker compose up -d mariadb
|
||
|
|
||
|
# Wait a couple of seconds that the database is ready
|
||
|
for I in $(eval echo "{$WAIT_TIMEOUT..1}"); do
|
||
|
printf " ${I}"
|
||
|
sleep 1
|
||
|
done
|
||
|
echo
|
||
|
|
||
|
# Start the rest of the containers
|
||
|
docker compose up -d
|