Docker volumes update

This commit is contained in:
Alexander Pankratov 2020-03-10 00:38:56 +03:00
parent ebb8deb276
commit ab5b083936
2 changed files with 5 additions and 2 deletions

View File

@ -4,7 +4,7 @@ COPY . /app
WORKDIR /app
#Remove .git and other dirs and files
RUN rm -rf .git/ .idea/ .DS_Store
RUN rm -rf .git/ .idea/ .DS_Store sessions/ .env
RUN pecl install apcu ev \
&& docker-php-ext-enable apcu ev \
@ -21,7 +21,7 @@ RUN \
| sed -e 's/IP_WHITELIST=127.0.0.1/IP_WHITELIST=/g' \
> .env;
VOLUME ["/app/sessions", "/app/.env:/app/.env"]
VOLUME ["/app/sessions"]
EXPOSE 9503

View File

@ -7,6 +7,9 @@ services:
restart: unless-stopped
ports:
- "127.0.0.1:9503:9503"
volumes:
- ./sessions:/app/sessions
- ./.env:/app/.env
logging:
driver: "json-file"
options: