first commit
This commit is contained in:
3
Dockerfile
Normal file
3
Dockerfile
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
FROM httpd:2.4-alpine
|
||||||
|
|
||||||
|
COPY ./html/ /usr/local/apache2/htdocs/
|
||||||
9
docker-compose.yaml
Normal file
9
docker-compose.yaml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
services:
|
||||||
|
apache:
|
||||||
|
build: .
|
||||||
|
container_name: apache-server
|
||||||
|
ports:
|
||||||
|
- "80:80"
|
||||||
|
volumes:
|
||||||
|
- ./html:/usr/local/apache2/htdocs
|
||||||
|
restart: unless-stopped
|
||||||
10
html/index.html
Normal file
10
html/index.html
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="ja">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>My Apache Server</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Docker Apache サーバ 動作中</h1>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user