-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
56 lines (51 loc) · 1.26 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
version: "3.8"
name: "chat-app-backend"
volumes:
ipython_history: {}
postgres_data:
services:
db:
image: postgres:latest
container_name: chat_app_database
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_USER=chat-app-backend
- POSTGRES_PASSWORD=chat-app-backend
- POSTGRES_DB=chat-app-backend
- dsro=chat-app-db
ports:
- "5432:5432"
redis:
image: redis:latest
container_name: chat_app_redis
ports:
- "6379:6379"
environment:
- dsro=chat-app-db
# celery:
# image: celery:latest
# container_name: celery_worker
# volumes:
# - .:/app
# environment:
# - DJANGO_SETTINGS_MODULE=app.settings
# - CELERY_BROKER_URL=redis://redis:6379/0
# - CELERY_RESULT_BACKEND=redis://redis:6379/0
# Use this for release
# web:
# build:
# context: .
# image: chat-app-backend
# entrypoint: /cnb/lifecycle/launcher
# volumes:
# - .:/app
# - ipython_history:/root/.ipython
# environment:
# - DJANGO_SETTINGS_MODULE=config.local_template
# ports:
# - "8000:8000"
# command: python3 manage.py runserver_plus 0.0.0.0:8000 --reloader-type stat
# depends_on:
# - db
# - redis