first
This commit is contained in:
commit
6dc403ebbc
11
Dockerfile.prod
Normal file
11
Dockerfile.prod
Normal file
@ -0,0 +1,11 @@
|
||||
# Dockerfile.prod
|
||||
# Use the official NGINX image
|
||||
FROM nginx:alpine
|
||||
|
||||
# Copy the production HTML files into the default NGINX public directory
|
||||
COPY ./web /usr/share/nginx/html
|
||||
|
||||
# Expose port 80 (the default port NGINX listens on)
|
||||
EXPOSE 80
|
||||
|
||||
# Start NGINX (this is the default behavior, no CMD or ENTRYPOINT needed)
|
||||
3
README.md
Normal file
3
README.md
Normal file
@ -0,0 +1,3 @@
|
||||
# coolify-docker-compose-simple-example
|
||||
|
||||
Demo repository for https://dev.to/mandrasch/simple-coolify-example-with-docker-compose-github-deployments-53m
|
||||
6
docker-compose.production.yaml
Normal file
6
docker-compose.production.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
version: '3'
|
||||
services:
|
||||
web:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.prod
|
||||
8
docker-compose.yml
Normal file
8
docker-compose.yml
Normal file
@ -0,0 +1,8 @@
|
||||
version: '3'
|
||||
services:
|
||||
web:
|
||||
image: nginx:alpine
|
||||
volumes:
|
||||
- ./web:/usr/share/nginx/html
|
||||
ports:
|
||||
- "8080:80"
|
||||
17
web/index.html
Normal file
17
web/index.html
Normal file
@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Hello Coolify!</title>
|
||||
<style>
|
||||
body{
|
||||
font-family: Verdana, Geneva, Tahoma, sans-serif;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Hello Coolify!</h1>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Loading…
x
Reference in New Issue
Block a user