commit 6dc403ebbcdafad7f16e71d341a8d94d77c40cd3 Author: Heinrich van Vught Date: Mon Apr 21 00:53:48 2025 +0100 first diff --git a/Dockerfile.prod b/Dockerfile.prod new file mode 100644 index 0000000..f7e7d7f --- /dev/null +++ b/Dockerfile.prod @@ -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) \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..c5fb998 --- /dev/null +++ b/README.md @@ -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 diff --git a/docker-compose.production.yaml b/docker-compose.production.yaml new file mode 100644 index 0000000..1896d12 --- /dev/null +++ b/docker-compose.production.yaml @@ -0,0 +1,6 @@ +version: '3' +services: + web: + build: + context: . + dockerfile: Dockerfile.prod \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..e28a235 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,8 @@ +version: '3' +services: + web: + image: nginx:alpine + volumes: + - ./web:/usr/share/nginx/html + ports: + - "8080:80" \ No newline at end of file diff --git a/web/index.html b/web/index.html new file mode 100644 index 0000000..82dbcb3 --- /dev/null +++ b/web/index.html @@ -0,0 +1,17 @@ + + + + + + Hello Coolify! + + + +

Hello Coolify!

+ + + \ No newline at end of file