Initial Commit
Add docker-based dev-environment
This commit is contained in:
3
Dockerfile
Normal file
3
Dockerfile
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
FROM nginx
|
||||||
|
COPY . /usr/share/nginx/html
|
||||||
|
EXPOSE 80
|
||||||
11
docker-compose.yml
Normal file
11
docker-compose.yml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
version: '2.0'
|
||||||
|
services:
|
||||||
|
http-warn:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
image: http-warn
|
||||||
|
ports:
|
||||||
|
- "8080:80"
|
||||||
|
volumes:
|
||||||
|
- .:/usr/share/nginx/html
|
||||||
7
index.html
Normal file
7
index.html
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<p>It's working!</p>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
9
prod.docker-compose.yml
Normal file
9
prod.docker-compose.yml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
version: '2.0'
|
||||||
|
services:
|
||||||
|
http-warn:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
image: http-warn
|
||||||
|
ports:
|
||||||
|
- "80:80"
|
||||||
Reference in New Issue
Block a user