feat: add writable directory for server content

This commit is contained in:
David Bailey 2023-12-11 16:14:55 +01:00
parent 8b01664b71
commit 81056ea42e
2 changed files with 9 additions and 3 deletions

View file

@ -14,5 +14,7 @@ RUN a2enmod rewrite
RUN a2enmod headers
RUN docker-php-ext-install mysqli && docker-php-ext-enable mysqli
RUN mkdir raw
COPY www/ .
RUN chmod -R a+r $(ls -I vendor)
RUN chmod -R a+rw $(ls -I vendor)

View file

@ -17,6 +17,9 @@ services:
ignore:
- ../.git
- mysql_schema.sql
volumes:
- website_datavolume:/var/www/html/raw
mysql:
build:
dockerfile: MysqlDockerfile
@ -32,7 +35,8 @@ services:
watch:
- path: mysql_schema.sql
action: rebuild
# volumes:
# - sqlvolume:/var/lib/mysql
volumes:
- sqlvolume:/var/lib/mysql
volumes:
sqlvolume: {}
website_datavolume: {}