1
0
Fork 0
mirror of https://github.com/docker/awesome-compose.git synced 2025-04-20 07:48:06 +02:00
This commit is contained in:
みねぎしれい 2023-05-15 10:49:10 +09:00 committed by GitHub
parent e6b1d2755f
commit 675c4d92a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 52 additions and 0 deletions

13
nginx/docker-compose.yml Normal file
View file

@ -0,0 +1,13 @@
version: "3"
services:
nginx:
container_name: nginx
build:
./nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/html:/usr/share/nginx/html
- ./nginx/conf.d:/etc/nginx/conf.d

1
nginx/nginx/Dockerfile Normal file
View file

@ -0,0 +1 @@
FROM nginx:latest

27
nginx/nginx/Readme.md Normal file
View file

@ -0,0 +1,27 @@

### ソースコード入手
```sh
git clone https://github.com/kawadasatoshi/DockerImages.git
```
### ディレクトリ移動
```sh
cd DockerImages/nginx
```
### コンテナ立ち上げ
```sh
docker-compose up
```

View file

@ -0,0 +1,8 @@
server {
listen 80;
server_name localhost;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
}

View file

@ -0,0 +1,3 @@
<h1>
hello world!
</h1>