https://github.com/mattmajestic/php-nix
Running PHP website with NixOS in Docker 🐘
https://github.com/mattmajestic/php-nix
docker docker-compose nixos php
Last synced: 5 months ago
JSON representation
Running PHP website with NixOS in Docker 🐘
- Host: GitHub
- URL: https://github.com/mattmajestic/php-nix
- Owner: mattmajestic
- Created: 2024-08-27T23:02:23.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-06T21:59:07.000Z (almost 2 years ago)
- Last Synced: 2025-10-23T12:43:34.494Z (8 months ago)
- Topics: docker, docker-compose, nixos, php
- Language: Nix
- Homepage: https://php-nix.onrender.com/
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
🚀 Docker PHP Server with NixOS
This Dockerfile sets up a basic PHP server using NixOS.
🖼 Base Image
Starts with the NixOS base image.
📁 Configuration
Copies configuration.nix to the Nix configuration directory to set up Nix.
🛠 Install PHP
Installs PHP using Nix package manager.
🌐 Web Files
Copies index.html to the web root directory.
🧩 Working Directory
Sets the working directory to the web root.
🌍 Port
Exposes port 80 for the web server.
🚀 Run PHP Server
Starts a simple PHP server on port 80.