-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
64 lines (63 loc) · 1.4 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
version: "3"
services:
web:
image: dqcuong93/dockertest
container_name: web
command: >
sh -c "python3 manage.py migrate && python3 manage.py runserver 0.0.0.0:8000"
ports:
- "8000:8000"
depends_on:
- db
- redis
- es
links:
- db
- redis
- es:es
environment:
MYSQL_DATABASE: "storedb"
MYSQL_USER: "storeadmin"
MYSQL_PASSWORD: "P@ssw0rd"
MYSQL_ROOT_PASSWORD: "P@ssw0rd"
restart: always
db:
image: mysql:5.7
container_name: database
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: "storedb"
MYSQL_USER: "storeadmin"
MYSQL_PASSWORD: "P@ssw0rd"
MYSQL_ROOT_PASSWORD: "P@ssw0rd"
restart: always
redis:
image: redis
container_name: redis
restart: always
ports:
- "6379:6379"
es:
image: docker.elastic.co/elasticsearch/elasticsearch:7.6.2
container_name: elasticsearch
environment:
- discovery.type=single-node
- bootstrap.memory_lock=false
ports:
- "9200:9200"
- "9300:9300"
zookeeper:
image: wurstmeister/zookeeper
container_name: zookeeper
ports:
- "2181:2181"
kafka:
image: wurstmeister/kafka
container_name: kafka
ports:
- "9092:9092"
environment:
KAFKA_ADVERTISED_HOST_NAME: kafka
KAFKA_CREATE_TOPICS: "store:1:1"
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181