diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml new file mode 100644 index 0000000..6e05354 --- /dev/null +++ b/docker/docker-compose.yml @@ -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 diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh new file mode 100755 index 0000000..93fbcd2 --- /dev/null +++ b/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