mirror of
https://github.com/docker/awesome-compose.git
synced 2025-04-20 07:48:06 +02:00
test
This commit is contained in:
parent
e6b1d2755f
commit
675c4d92a5
5 changed files with 52 additions and 0 deletions
13
nginx/docker-compose.yml
Normal file
13
nginx/docker-compose.yml
Normal 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
1
nginx/nginx/Dockerfile
Normal file
|
@ -0,0 +1 @@
|
|||
FROM nginx:latest
|
27
nginx/nginx/Readme.md
Normal file
27
nginx/nginx/Readme.md
Normal file
|
@ -0,0 +1,27 @@
|
|||
|
||||
|
||||
### ソースコード入手
|
||||
|
||||
```sh
|
||||
git clone https://github.com/kawadasatoshi/DockerImages.git
|
||||
```
|
||||
|
||||
|
||||
### ディレクトリ移動
|
||||
|
||||
```sh
|
||||
cd DockerImages/nginx
|
||||
```
|
||||
|
||||
### コンテナ立ち上げ
|
||||
|
||||
```sh
|
||||
docker-compose up
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
8
nginx/nginx/conf.d/default.conf
Normal file
8
nginx/nginx/conf.d/default.conf
Normal file
|
@ -0,0 +1,8 @@
|
|||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html index.htm;
|
||||
}
|
||||
}
|
3
nginx/nginx/html/index.html
Normal file
3
nginx/nginx/html/index.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
<h1>
|
||||
hello world!
|
||||
</h1>
|
Loading…
Add table
Add a link
Reference in a new issue