added a docker-compose file and an entrypoint shell script to run a test server for zer.ooo

master
Tim Bazuin 5 years ago
parent cb7297eb88
commit c5ff4af87c

@ -0,0 +1,12 @@
version: "3.6"
services:
zer.ooo:
image: d.xr.to/php
container_name: zer.ooo-test
volumes:
- ../:/sites/zer.ooo
working_dir: /sites/zer.ooo
ports:
- 127.0.0.1:80:80
command: ./docker/entrypoint.sh

@ -0,0 +1,10 @@
#!/usr/bin/env bash
echo 'extension=iconv.so' >> /etc/php/php.ini
echo 'extension=sqlite3.so' >> /etc/php/php.ini
test -d vendor || ./bin/setup_web
test -d storage/ca || mkdir storage/ca
test -d ca.crt || ./bin/setup
php -S 0.0.0.0:80 -t public public/index.php
Loading…
Cancel
Save