1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

amazon linux(EC2)でlaravel+Dockerの環境を作りたい

Last updated at Posted at 2022-01-24

最近インフラ周りの勉強を始めたのでdocker+laravelの環境をEC2上に実現したいと思い奮闘しています。
参考になった記事を貼っていきます。

#記事

【AWS 入門】EC2とDockerでHello Worldしよう

こちらの動画の27:30まで進めます。
この動画でEC2を立ち上げてSSHでEC2にアクセスをしてdockerをインストールしてdocekr infoで確認するところまでいけると思います。

【シンプル解説】docker-composeを使ってLaravel,nginx,MySQL環境構築する
https://simablog.net/docker-laravel-nginx-mysql/

##SSH接続後

phpをインストールする
https://qiita.com/nagahama/items/2fdc820791bee5d564ca

composer install
https://qiita.com/kawanet/items/30c1acd4bc90ee0e535d

composer installの際のエラー(/usr/local/bin/docker-compose: line 1: Not: command not found)
https://github.com/docker/compose/issues/6268

amazon linux内でcomposerのpathを通す(どこでもcomposerコマンドを使えるようにする)
https://qiita.com/miriwo/items/b25f9d4d74b7103f6ff6

1
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?