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 a2enmod headers
RUN docker-php-ext-install mysqli && docker-php-ext-enable mysqli RUN docker-php-ext-install mysqli && docker-php-ext-enable mysqli
RUN mkdir raw
COPY www/ . 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: ignore:
- ../.git - ../.git
- mysql_schema.sql - mysql_schema.sql
volumes:
- website_datavolume:/var/www/html/raw
mysql: mysql:
build: build:
dockerfile: MysqlDockerfile dockerfile: MysqlDockerfile
@ -32,7 +35,8 @@ services:
watch: watch:
- path: mysql_schema.sql - path: mysql_schema.sql
action: rebuild action: rebuild
# volumes: volumes:
# - sqlvolume:/var/lib/mysql - sqlvolume:/var/lib/mysql
volumes: volumes:
sqlvolume: {} sqlvolume: {}
website_datavolume: {}