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?

Dockerを使ったWebアプリのホスト

Posted at

記事作成の動機

趣味の一環で位置エン本を参考に地図系のWebページを作成しようとしたのですが。。。環境構築すら怪しいことが分かったので、備忘録的に勉強内容を記録しておきます。

Dockerを使ったWebサーバの開発環境構築

まずはDockerを使ってWebサーバをホストさせます。

Dockerでアパッチを立ち上げる。

簡易的なWebページであれば、Apacheが簡単かつサクサク動くので、私のような初心者には最適です。
公式のDocker Hubに組み立て済みのアパッチイメージがあるので、それをPullしましょう。

docker pull httpd
docker run --name XXX -d -p 8080:80 -v "XXX:/usr/local/apache2/htdocs/" httpd

今後

LeafletはCDN(Content Delivery Network)を使えば特にライブラリを参照しなくて済みますが、ローカルでホストする可能性も考えて、ライブラリのインストールまで行いたいです。
Npmを使うらしく、Node.js関連の知識が必要になるので、今度はそちらも勉強します。
Dockerも不慣れなので、こちらも勉強していきたいです。

参考先

 https://qiita.com/kerupani129/items/60ee8c8becc2fe9f0d28

1
0
0

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?