Skip to content
Snippets Groups Projects
Commit 3c65e225 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

compose file works now under windows

parent 008fc54f
No related branches found
No related tags found
2 merge requests!1574Development,!1573Resolve "New Captcha Texts"
...@@ -14,11 +14,11 @@ services: ...@@ -14,11 +14,11 @@ services:
dependencies: dependencies:
depends_on: depends_on:
- "mgdb" - "mgdb"
image: php:7.3-cli image: php:7.3-cli-alpine
volumes: volumes:
- .:/data - .:/data
working_dir: /data working_dir: /data
command: /data/init.sh command: /bin/sh -c "apk add --update dos2unix && dos2unix ./init.sh && ./init.sh && ./init.sh"
mgdb: mgdb:
restart: on-failure restart: on-failure
image: mariadb:latest image: mariadb:latest
......
...@@ -12,6 +12,10 @@ if [ -f "/data/database/useragents.sqlite" ]; then ...@@ -12,6 +12,10 @@ if [ -f "/data/database/useragents.sqlite" ]; then
rm /data/database/useragents.sqlite rm /data/database/useragents.sqlite
fi fi
if [ ! -d "/data/storage/logs/metager" ]; then
mkdir -p /data/storage/logs/metager
fi
touch /data/database/useragents.sqlite touch /data/database/useragents.sqlite
chmod -R go+w storage bootstrap/cache chmod -R go+w storage bootstrap/cache
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment