Initial Docker support

This commit adds:
1. A Dockerfile that runs PHP 7.2 FPM on Alpine Linux
2. A example docker-compose file that simplifies deployment
This commit is contained in:
Birkhoff Lee
2019-11-21 12:54:22 +08:00
parent 017577db42
commit 8bc5ea2d5e
4 changed files with 124 additions and 0 deletions

View File

@ -0,0 +1,18 @@
version: '3.1'
services:
nginx:
image: nginx
expose:
- 80
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
restart: always
php:
build: .
expose:
- 9000
restart: always