diff --git a/install.sh b/install.sh new file mode 100644 index 000000000..5f6c0b66d --- /dev/null +++ b/install.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +composer install && console/yii app/setup --interactive=0 \ No newline at end of file diff --git a/pwd-compose.yml b/pwd-compose.yml index 7f6e4a29a..f4113ab89 100644 --- a/pwd-compose.yml +++ b/pwd-compose.yml @@ -17,11 +17,15 @@ services: - starter_kit_app:/data/git/repos/yii2-starter-kit - mysql_config:/data/git/repos/yii2-starter-kit/docker/mysql - nginx_config:/data/git/repos/yii2-starter-kit/docker/nginx + command: + - cp .env.dist .env app: image: alfredleo/starter_kit_app:secondtry volumes: - starter_kit_app:/app + command: + - ./install.sh environment: - YII_DEBUG = true - YII_ENV = dev