Skip to content

Commit cb6ced1

Browse files
authored
Merge pull request #2001 from opensource-workshop/docker
[Docker] 設定値見直し
2 parents 9f9b0cb + 4b93e05 commit cb6ced1

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

docker-compose.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
version: '3'
21
services:
32
app:
43
container_name: app
54
build: ./docker/app
6-
volumes:
5+
volumes:
76
- .:/var/www/html/connect-cms
8-
ports:
7+
ports:
98
- 80:80
109
environment:
1110
DB_USERNAME: JohnDoe

docker/app/setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ sed -i 's/MAIL_FROM_ADDRESS=null/MAIL_FROM_ADDRESS=mailhog@mailhog.com/g' .env
2222
# アプリケーションキーの初期化
2323
php artisan key:generate
2424
# DBマイグレーション
25-
php artisan migrate
25+
php artisan migrate --force
2626
# seederで初期データインポート
27-
php artisan db:seed
27+
php artisan db:seed --force
2828

2929
# storageディレクトリとbootstrap/cacheディレクトリをWebサーバから書き込み可能にする
3030
chown -R www-data:www-data storage

0 commit comments

Comments
 (0)