feat: add writable directory for server content
This commit is contained in:
parent
8b01664b71
commit
81056ea42e
2 changed files with 9 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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: {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue