This commit is contained in:
Heinrich van Vught 2025-04-21 00:53:48 +01:00
commit 6dc403ebbc
5 changed files with 45 additions and 0 deletions

11
Dockerfile.prod Normal file
View 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
View 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

View File

@ -0,0 +1,6 @@
version: '3'
services:
web:
build:
context: .
dockerfile: Dockerfile.prod

8
docker-compose.yml Normal file
View 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
View 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>