-
Notifications
You must be signed in to change notification settings - Fork 0
/
local.yaml
73 lines (68 loc) · 1.67 KB
/
local.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
services:
db:
image: postgres:13.0-alpine
container_name: maranomadstore_local_postgres
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=marastore
- POSTGRES_USER=marastore
- POSTGRES_PASSWORD=marastore
rabbit:
hostname: localhost
image: rabbitmq:3.6.9
container_name: maranomadstore_local_rabbitmq
environment:
- RABBITMQ_DEFAULT_USER=user
- RABBITMQ_DEFAULT_PASS=password
- RABBITMQ_DEFAULT_VHOST=/
# - CELERY_BROKER_URL=amqp://user:password@rabbit:5672
- CELERY_BROKER_URLamqp://guest:**@127.0.0.1:5672//
ports:
- "5672:5672"
- "15672:15672"
expose:
- "5672"
redis:
image: redis:6
container_name: maranomadstore_local_redis
web: &web
build: .
image: maranomadstore_local_web
container_name: maranomadstore_local_web
command: python manage.py runserver 0.0.0.0:8000
volumes:
- .:/usr/src/maranomadstore/
ports:
- 8000:8000
# env_file:
# - ./.env.dev
# environment:
# - name=value
links:
- db
- rabbit
depends_on:
- db
- redis
- rabbit
restart: "on-failure"
celeryworker:
<<: *web
image: maranomadstore_local_celeryworker
container_name: maranomadstore_local_celeryworker
depends_on:
- redis
- db
ports: []
command: celery -A maranomadstore worker -l info
flower:
<<: *web
image: maranomadstore_local_flower
container_name: maranomadstore_local_flower
ports:
- "5555:5555"
command: celery -A maranomadstore flower
# persist data beyond life of container
volumes:
postgres_data: