-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdev.yml
87 lines (77 loc) · 1.61 KB
/
dev.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
version: '2'
services:
postgres:
build: ./compose/postgres
environment:
- POSTGRES_USER=ojoalplato
django_ojoalplato:
build:
context: .
dockerfile: ./compose/django/Dockerfile-dev
command: python /app/manage.py runserver 0.0.0.0:8000
depends_on:
- postgres
- mailhog
- mysql
env_file: .env
environment:
- POSTGRES_USER=ojoalplato
- USE_DOCKER=yes
- CELERY_BROKER_URL='redis://redis
volumes:
- .:/app
ports:
- "8000:8000"
links:
- postgres
- mailhog
- mysql
- redis
- elasticsearch
mailhog:
image: mailhog/mailhog
ports:
- "8025:8025"
mysql:
build: ./compose/mysql
environment:
- MYSQL_USER=ojoalplato
- MYSQL_PASSWORD=ojoalplato
- MYSQL_DATABASE=wordpress
- MYSQL_ROOT_PASSWORD=ojoalplato
ports:
- "3306:3306"
redis:
image: redis:latest
celeryworker:
build:
context: .
dockerfile: ./compose/django/Dockerfile-dev
volumes:
- .:/app
depends_on:
- redis
environment:
- POSTGRES_USER=ojoalplato
- USE_DOCKER=yes
command: celery -A ojoalplato.taskapp worker -l INFO
elasticsearch:
image: elasticsearch:2.4.5
hostname: elasticsearch
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 1g
ports:
- 9200:9200
kibana:
image: kibana:7.10.1
links:
- elasticsearch
ports:
- "5601:5601"