-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
71 lines (66 loc) · 1.37 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
59
60
61
62
63
64
65
66
67
68
69
70
71
version: '3'
services:
pushetta:
container_name: pushetta-be
command: python pushetta/manage.py runserver 0.0.0.0:8001
build:
context: .
expose:
- 8001
ports:
- 8001:8001
depends_on:
- db
- redis
- elastic
env_file:
- ./pushetta.env
volumes:
- ./volumes/pushetta:/usr/share/pushetta/
db:
image: mysql:5.5
container_name: db
ports:
- 3306:3306
expose:
- 3306
env_file:
- ./database.env
volumes:
- ./volumes/database/:/var/lib/mysql/
elastic:
image: elasticsearch:2
container_name: elastic
ports:
- '9200:9200'
expose:
- 9200
environment:
- http.host=0.0.0.0
- transport.host=127.0.0.1
- bootstrap.memory_lock=true
- 'ES_JAVA_OPTS=-Xms512m -Xmx512m'
cap_add:
- IPC_LOCK
volumes:
- ./volumes/elasticsearch:/usr/share/elasticsearch/data
redis:
image: redis:4.0-alpine
container_name: redis
ports:
- 6379:6379
expose:
- 6379
volumes:
- ./volumes/redis:/data
mosquitto:
image: guglielmino/mosquitto-pushetta-auth-plugin:v1.0.9
container_name: mosquitto
ports:
- 1883:1883
expose:
- 1883
depends_on:
- db
command:
['/wait_for', 'db:3306', '--', '/usr/sbin/mosquitto', '-c', '/etc/mosquitto/mosquitto.conf']