Commit 3c65e225 authored by Dominik Hebeler's avatar Dominik Hebeler

compose file works now under windows

parent 008fc54f
......@@ -14,11 +14,11 @@ services:
dependencies:
depends_on:
- "mgdb"
image: php:7.3-cli
image: php:7.3-cli-alpine
volumes:
- .:/data
working_dir: /data
command: /data/init.sh
command: /bin/sh -c "apk add --update dos2unix && dos2unix ./init.sh && ./init.sh && ./init.sh"
mgdb:
restart: on-failure
image: mariadb:latest
......
......@@ -12,6 +12,10 @@ if [ -f "/data/database/useragents.sqlite" ]; then
rm /data/database/useragents.sqlite
fi
if [ ! -d "/data/storage/logs/metager" ]; then
mkdir -p /data/storage/logs/metager
fi
touch /data/database/useragents.sqlite
chmod -R go+w storage bootstrap/cache
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment