Skip to content

harinez2/42_ft_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

42_ft_server

42課題:ft_server

実行例

イメージのビルド

docker build -t ttt .

イメージの実行

docker run -p 8080:80 -p 4443:443 -e AUTOINDEX=on -it ttt

機能

  • HTTP(80番ポート)、HTTPS(443番ポート)にてウェブサーバがnginxで起動します
  • コンテナ実行時にAUTOINDEXの値を指定することで、index.xxxのファイルがないときにファイル一覧を表示するかどうかの設定を指定できます
  • https://localhost:443/wp/ にてWordPressが起動します
  • https://localhost:443/phpmyadmin/ にてphpMyAdminが起動します

動作確認環境

ホスト

Ubuntu 18.04.4 LTS
Docker version 19.03.6, build 369ce74a3c

コンテナ

Debian GNU/Linux 10 (buster) 10.7
nginx/1.14.2
mysql  Ver 8.0.22 for Linux on x86_64 (MySQL Community Server - GPL)
phpMyAdmin-5.0.4
wordpress-5.6-ja

About

42課題:ft_server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages