We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63422c8 commit 6b04a33Copy full SHA for 6b04a33
fig.yml
@@ -11,6 +11,7 @@ web:
11
environment:
12
- MYSQL_HOST=mysql
13
working_dir: /var/www/html
14
+ entrypoint: /home/dev/scripts/docker-init.sh
15
mysql:
16
image: mysql
17
scripts/docker-init.sh
@@ -0,0 +1,10 @@
1
+#!/bin/bash
2
+mysql -u root -proot -e "CREATE DATABASE IF NOT EXISTS drupal;"
3
+echo "=================================================="
4
+echo
5
+echo " Pranacssorhoz futtasd a következő parancsot:"
6
7
+echo " fig run --rm --entrypoint bash web"
8
9
10
+/usr/sbin/apache2 -D FOREGROUND
0 commit comments