Skip to content

Commit

Permalink
chore: docker-compose.yml, заточенный на .env файл
Browse files Browse the repository at this point in the history
  • Loading branch information
popstas committed Jul 7, 2018
1 parent 61cf9f7 commit 1f2281b
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
BASE_URL="http://localhost:3856"
IS_PROXY=1
SPEECH_ENGINE=yandex
YANDEX_WEBSPEECH_KEY="your-key"
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ dist

# service worker
sw.*

# environment
.env
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,15 @@ docker run --name yandex-dialogs-client -d -p 3000:3000 popstas/yandex-dialogs-c
```

#### Запуск через Docker compose

```
git clone https:/popstas/yandex-dialogs-client.git
cd yandex-dialogs-client
cp .env.sample .env
```

Нужно скопировать `.env.sample` в `.env` и заполнить. После этого собрать и поднять:

```
docker-compose build
docker-compose up -d
```
Expand Down
7 changes: 5 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ services:
yandex-dialogs-client:
image: popstas/yandex-dialogs-client
build: .
restart: always
environment:
BASE_URL: https://dialogs.home.popstas.ru # default http://localhost:3000
IS_PROXY: 1
BASE_URL: ${BASE_URL}
IS_PROXY: ${IS_PROXY}
SPEECH_ENGINE: ${SPEECH_ENGINE}
YANDEX_WEBSPEECH_KEY: ${YANDEX_WEBSPEECH_KEY}
ports:
- 3856:3000

0 comments on commit 1f2281b

Please sign in to comment.