[PR #980] [CLOSED] POC: Docker files in local directory #1193

Closed
opened 2026-02-25 21:37:30 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/cypht-org/cypht/pull/980
Author: @jonocodes
Created: 4/28/2024
Status: Closed

Base: masterHead: local-docker-poc


📝 Commits (2)

📊 Changes

7 files changed (+468 additions, -6 deletions)

View changed files

📝 .env.example (+16 -6)
docker-compose.yaml (+34 -0)
docker/Dockerfile (+67 -0)
docker/cypht_setup_database.php (+53 -0)
docker/docker-entrypoint.sh (+236 -0)
docker/nginx.conf (+40 -0)
docker/supervisord.conf (+22 -0)

📄 Description

This is a proof of concept how how to move and use docker into the main repo, as discussed here:
https://github.com/cypht-org/cypht-docker/issues/31#issuecomment-2081175722

It does not fully work since I have not lined up the env vars, but you can get it started and see the home page by running:

docker compose up --build

then visit http://localhost/

I have mostly copied over files from here: https://github.com/cypht-org/cypht-docker/tree/master/image
and I left in the commented out lines so you can see some of the changes I introduced.

docker-compose.yaml here gives several benefits:

  1. It provides a runtime spec for the inputs required to run the program.
  2. You can easily pull down the git repo and use it right away too see how cypht behaves in docker.
  3. We can set it up such that this is also usable for a developer - such that they can work on the project without having php (and other dependencies) installed locally on the machine.
  4. We can use docker-compose.yaml to build and distribute production images - likely triggered by a github action or something.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/cypht-org/cypht/pull/980 **Author:** [@jonocodes](https://github.com/jonocodes) **Created:** 4/28/2024 **Status:** ❌ Closed **Base:** `master` ← **Head:** `local-docker-poc` --- ### 📝 Commits (2) - [`889da1a`](https://github.com/cypht-org/cypht/commit/889da1a9c83edb8ef56fc151f22c86fc3392efe5) Docker files in local directory - [`98ed695`](https://github.com/cypht-org/cypht/commit/98ed695b2fd8bfb32a8f92eb72c08c140e3b7a3a) Add some TODO notes ### 📊 Changes **7 files changed** (+468 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `.env.example` (+16 -6) ➕ `docker-compose.yaml` (+34 -0) ➕ `docker/Dockerfile` (+67 -0) ➕ `docker/cypht_setup_database.php` (+53 -0) ➕ `docker/docker-entrypoint.sh` (+236 -0) ➕ `docker/nginx.conf` (+40 -0) ➕ `docker/supervisord.conf` (+22 -0) </details> ### 📄 Description This is a proof of concept how how to move and use docker into the main repo, as discussed here: https://github.com/cypht-org/cypht-docker/issues/31#issuecomment-2081175722 It does not fully work since I have not lined up the env vars, but you can get it started and see the home page by running: `docker compose up --build` then visit http://localhost/ I have mostly copied over files from here: https://github.com/cypht-org/cypht-docker/tree/master/image and I left in the commented out lines so you can see some of the changes I introduced. docker-compose.yaml here gives several benefits: 1. It provides a runtime spec for the inputs required to run the program. 2. You can easily pull down the git repo and use it right away too see how cypht behaves in docker. 3. We can set it up such that this is also usable for a developer - such that they can work on the project without having php (and other dependencies) installed locally on the machine. 4. We can use docker-compose.yaml to build and distribute production images - likely triggered by a github action or something. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-25 21:37:30 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cypht#1193
No description provided.