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

This commit is contained in:
Tim Bazuin 2019-08-03 13:17:03 +02:00
parent cb7297eb88
commit c5ff4af87c
2 changed files with 22 additions and 0 deletions

12
docker/docker-compose.yml Normal file
View file

@ -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

10
docker/entrypoint.sh Executable file
View file

@ -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