From: Blackstareye <> Date: Sat, 18 Jan 2025 17:15:14 +0000 (+0100) Subject: fix for issue #21 and a docker_compose.yaml for testing X-Git-Url: https://git.p6c8.net/jirafeau_project.git/commitdiff_plain/refs/merge-requests/20/head fix for issue #21 and a docker_compose.yaml for testing --- diff --git a/Dockerfile b/Dockerfile index d4854a8..823c1dd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,8 +21,8 @@ RUN --mount=type=bind,source=.,target=/mnt \ cp -r /mnt/* /www/ && \ rm -rf /www/docker && \ touch /www/lib/config.local.php && \ - chown -R $(id -u lighttpd).$(id -g www-data) /www && \ + chown -R $(id -u lighttpd):$(id -g www-data) /www && \ chmod 770 /www CMD ["/run.sh"] -EXPOSE 80 \ No newline at end of file +EXPOSE 80 diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..6b9c57b --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,12 @@ +services: + web: + build: + context: . # or ../Dockerfile if we put it in the ./docker folder + volumes: + - ./jirafeau_data:/data + environment: + - ADMIN_PASSWORD='p4ssw0rd' + + ports: + - 8080:80 +