mirror of
https://github.com/danog/TelegramApiServer.git
synced 2024-11-26 11:54:42 +01:00
Docker volumes update
This commit is contained in:
parent
ebb8deb276
commit
ab5b083936
@ -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
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user