https://github.com/webpwnized/dragonfly-docker
Code to containerize the Dragonfly PHP application
https://github.com/webpwnized/dragonfly-docker
Last synced: 7 months ago
JSON representation
Code to containerize the Dragonfly PHP application
- Host: GitHub
- URL: https://github.com/webpwnized/dragonfly-docker
- Owner: webpwnized
- License: gpl-3.0
- Created: 2023-12-30T21:26:21.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-08T21:09:37.000Z (about 1 year ago)
- Last Synced: 2025-02-12T01:38:40.847Z (9 months ago)
- Language: Shell
- Size: 44.9 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
```
____ ______ ____ __
/ __ \_________ _____ _____ ____ / __/ /_ __ / __ \____ _____/ /_____ _____
/ / / / ___/ __ `/ __ `/ __ \/ __ \/ /_/ / / / / / / / / __ \/ ___/ //_/ _ \/ ___/
/ /_/ / / / /_/ / /_/ / /_/ / / / / __/ / /_/ / / /_/ / /_/ / /__/ ,< / __/ /
/_____/_/ \__,_/\__, /\____/_/ /_/_/ /_/\__, / /_____/\____/\___/_/|_|\___/_/
/____/ /____/
```
## Project Announcements
Stay updated with project announcements by following us on [Twitter](https://twitter.com/webpwnized).
## TL;DR
To quickly run the Dragonfly PHP application using Docker, execute the following command:
```bash
docker compose --file .build/docker-compose.yml up --detach
```
## Overview
This project provides containerized environments for running the Dragonfly PHP application. The directory structure is as follows:
- **LICENSE**: License file for the project.
- **README.md**: Main documentation file in Markdown format.
- **version**: File containing version information.
The `.build` directory contains Docker-related files:
- **docker compose.yml**: Docker Compose file to orchestrate container creation and networking.
- **www**: Directory containing Dockerfile for building the `webpwnized/dragonfly:www` image.
The `.tools` directory contains utility scripts for managing the project:
- **list-container-installed-packages.sh**: Script to list installed packages in containers.
- **remove-all-images.sh**: Script to remove all Docker images.
- **update-dragonfly-application.sh**: Script to update the Dragonfly application.
- **git.sh**: Git utility script for managing the project repository.
- **push-to-dockerhub.sh**: Script to push Docker images to Docker Hub.
- **push-development-branch.sh**: Script to push changes to the development branch.
- **start-containers.sh**: Script to start Docker containers.
- **stop-containers.sh**: Script to stop Docker containers.
## Usage
1. **Building Containers**: To build the container image `webpwnized/dragonfly:www`, execute the following command from the project root:
```bash
docker build --file .build/www/Dockerfile --tag webpwnized/dragonfly:www .
```
2. **Running Containers**: Start the containers using Docker Compose. From the project root, execute:
```bash
docker compose --file .build/docker-compose.yml up --detach
```
Once the containers are running, you can access the Dragonfly web interface at the following URLs:
- [http://localhost](http://localhost)
- [http://localhost:8088](http://localhost:8088)
Enjoy using Dragonfly!