forked from DominicBoettger/docker-aegir-mariadb
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker_run.sh
executable file
·41 lines (37 loc) · 1.17 KB
/
docker_run.sh
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
#!/bin/bash
# Config default, customize in config-include.sh:
export AEGIR_SITE=aegir01
export AEGIR_FRONTEND_URL=aegir01.mydomain.com
export [email protected]
export AEGIR_DB_PASSWORD=CHANGEME
export AEGIR_VERSION=7.x-3.x
export MYSQL_ROOT_PW=CHANGEME
export SOLR_PASS=CHANGEME
export SOLR_VERSION=4.6.0
export IMAGE_NAME=namespace/aegir_maria
if [ -f config-include.sh ]; then
source config-include.sh
fi
docker run \
--detach=true \
-v /var/docker/aegir01/usr/share/solr4:/usr/share/solr4 \
-v /var/docker/aegir01/var/aegir:/var/aegir \
-v /var/docker/aegir01/var/log/apache2:/var/log/apache2 \
-v /var/docker/aegir01/var/lib/mysql:/var/lib/mysql \
-v /var/docker/aegir01/etc/mysql/conf.d:/etc/mysql/conf.d \
-v /var/docker/aegir01/var/log/mysql:/var/log/mysql \
-e AEGIR_SITE=$AEGIR_SITE \
-e AEGIR_FRONTEND_URL=$AEGIR_FRONTEND_URL \
-e AEGIR_EMAIL=$AEGIR_EMAIL \
-e AEGIR_DB_PASSWORD=$AEGIR_DB_PASSWORD \
-e AEGIR_VERSION=$AEGIR_VERSION \
-e MYSQL_ROOT_PW=$MYSQL_ROOT_PW \
-e SOLR_PASS=$SOLR_PASS \
-e SOLR_VERSION=$SOLR_VERSION \
-p 30880:8080 \
-p 30080:80 \
-p 30443:443 \
-p 30022:22 \
-h aegir01 \
--name aegir01 \
$IMAGE_NAME