Archived
0
This repository has been archived on 2022-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
Files
project-ctl/start.sh
2022-02-17 13:05:36 +03:00

22 lines
529 B
Bash
Executable File

#!/bin/bash
# vi: set tabstop=4 shiftwidth=4 expandtab :
ROOTDIR=$(cd "$(dirname "$0")" && pwd)
cd $ROOTDIR
. ./env.sh
if [[ -n $(docker ps -q --filter "name=$DKRNAME") ]]
then
echo "$NAME is runned."
else
echo "Start $NAME container..."
docker run -d \
--name "$DKRNAME" \
--memory '512M' \
--volume /etc/timezone:/etc/timezone:ro \
--volume /etc/localtime:/etc/localtime:ro \
--publish 0.0.0.0:9091:80 \
--env 'PMA_ARBITRARY=1' \
phpmyadmin:5.1.1-apache
fi