-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
58 lines (58 loc) · 1.43 KB
/
docker-compose.yml
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
57
58
services:
db:
environment:
- POSTGRES_USER=website
- POSTGRES_PASSWORD=website
- POSTGRES_DB=website
image: postgres:12
mem_limit: 128m
rabbitmq:
environment:
- RABBITMQ_DEFAULT_USER=website
- RABBITMQ_DEFAULT_PASS=website
- RABBITMQ_DEFAULT_VHOST=website
image: rabbitmq
mem_limit: 128m
redis:
command: redis-server --requirepass website --appendonly yes
image: redis:5
mem_limit: 128m
release:
build: .
command: python manage.py migrate
environment:
- DJANGO_ALLOWED_HOSTS=*
- DJANGO_SECRET_KEY=123123123123
- DATABASE_URL=postgresql://website:website@db:5432/website
- REDIS_URL=redis://:website@redis:6379/0
- CELERY_BROKER_URL=amqp://website:website@rabbitmq:5672/website
- DJANGO_DEBUG=1
- PORT=8000
volumes:
- "./:/code"
depends_on:
- db
- redis
- rabbitmq
mem_limit: 128m
web:
build: .
command: gunicorn appliku_start.wsgi
environment:
- DJANGO_ALLOWED_HOSTS=*
- DJANGO_SECRET_KEY=123123123123
- DATABASE_URL=postgresql://website:website@db:5432/website
- REDIS_URL=redis://:website@redis:6379/0
- CELERY_BROKER_URL=amqp://website:website@rabbitmq:5672/website
- DJANGO_DEBUG=1
- PORT=8000
mem_limit: 128m
ports:
- 127.0.0.1:8000:8000
volumes:
- "./:/code"
depends_on:
- db
- redis
- rabbitmq
version: '2.4'