Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danielgormly/statamic-nginx-docker
Basic Statamic & Nginx Docker Setup
https://github.com/danielgormly/statamic-nginx-docker
Last synced: about 1 month ago
JSON representation
Basic Statamic & Nginx Docker Setup
- Host: GitHub
- URL: https://github.com/danielgormly/statamic-nginx-docker
- Owner: danielgormly
- Created: 2017-07-17T07:19:49.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-09-09T13:19:07.000Z (over 4 years ago)
- Last Synced: 2024-08-03T01:12:03.814Z (5 months ago)
- Language: Dockerfile
- Size: 8.79 KB
- Stars: 29
- Watchers: 2
- Forks: 9
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome - Statamic Docker - Get started playing with Statamic in a few command lines with Docker. (Dev Tools)
README
# Basic Statamic & Nginx Docker Setup
**For Statamic 3, see [statamic3-nginx-docker](https://github.com/danielgormly/statamic3-nginx-docker/)**
Statamic 2.x Docker setup with Nginx.git
## Installation
- Clone repository
- Download [Statamic](https://statamic.com/) and extract into `./statamic`
- Run `docker-compose up -d` to start
- Listening on port 8000
- Run statamic installer `/installer.php`
- `docker-compose build` to rebuild services if you make any changes## Files
**docker-compose.yml** Docker composition file, builds fpm & Nginx dockerfiles.
**fpm.Dockerfile** Builds from official [fpm:php-7fpm](https://hub.docker.com/_/php/) image Installs GD and required dependencies for Statamic's image manipulation capabilities. Adds `php.ini` into project (you may want to update the timezone here - defaults to `Australia/Sydney`). Makes 256mb memory available as recommended by Statamic (default for fpm:php-7fpm Docker image is 128mb).
**nginx.Dockerfile** Adds `statamic.nginx.conf` (site specific Nginx conf file) to Nginx container