Skip to content
This repository was archived by the owner on Jul 16, 2021. It is now read-only.

Commit a0fa993

Browse files
committed
Deploy insecure centrifugo server.
1 parent 8afd536 commit a0fa993

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

docker-compose.yml

+7
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ services:
66
command: ./manage.py runserver_plus 0.0.0.0:8000
77
depends_on:
88
- db
9+
- ws
910
volumes:
1011
- .:/app
1112
ports:
1213
- "8000:8000"
1314
environment:
1415
DATABASE_URL: postgres://bookshelf:bookshelf@db/bookshelf
1516
SENTRY_DSN: http://90cd262318fd4904b735809e4fcde4fc@sentry:9000/1
17+
CENTRIFUGO_URL: http://ws:8001/
1618
networks:
1719
- default
1820
- sentry
@@ -24,6 +26,11 @@ services:
2426
POSTGRES_DB: bookshelf
2527
POSTGRES_USER: bookshelf
2628
POSTGRES_PASSWORD: bookshelf
29+
ws:
30+
image: centrifugo/centrifugo
31+
command: centrifugo --address 0.0.0.0 --port 8001 --api_insecure --client_insecure
32+
ports:
33+
- "8001:8001"
2734
networks:
2835
sentry:
2936
external:

requirements.in

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
attrs
2+
cent
23
git+https://github.com/dry-python/dependencies.git@master#egg=dependencies
34
Django
45
django-debug-toolbar

requirements.txt

+6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
attrs==19.3.0
2+
cent==3.0.1
23
git+https://github.com/dry-python/dependencies.git@master#egg=dependencies
34
Django==3.0.1
45
django-debug-toolbar==2.1
@@ -14,9 +15,14 @@ Werkzeug==0.16.0
1415
## The following requirements were added by pip freeze:
1516
argh==0.26.2
1617
asgiref==3.2.3
18+
certifi==2019.11.28
19+
chardet==3.0.4
20+
idna==2.8
1721
pathtools==0.1.2
1822
pytz==2019.3
1923
PyYAML==5.2
24+
requests==2.22.0
2025
six==1.13.0
2126
sqlparse==0.3.0
27+
urllib3==1.25.7
2228
watchdog==0.9.0

0 commit comments

Comments
 (0)