-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (50 loc) · 1.18 KB
/
docker-compose.yml
File metadata and controls
55 lines (50 loc) · 1.18 KB
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
version: '3.4'
services:
mysql:
image: mysql:5.7
command: --default-authentication-plugin=mysql_native_password
restart: always
ports:
- 13306:3306
environment:
MYSQL_ROOT_PASSWORD: "root"
TZ: "Asia/Seoul"
postgres:
image: postgres:9.6
container_name: postgres
environment:
- POSTGRES_USER=docker
- POSTGRES_PASSWORD=docker
ports:
- '5432:5432'
volumes:
- postgre-data:/usr/local/psql/data
redis_auth:
image: bitnami/redis:5.0
environment:
- ALLOW_EMPTY_PASSWORD=yes
ports:
- 7000:6379
zookeeper:
image: 'bitnami/zookeeper:latest'
ports:
- '2181:2181'
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
labels:
io.rancher.scheduler.affinity:host_label: platform=etc01
io.rancher.container.hostname_override: container_name
kafka:
hostname: kafka
image: 'soldevelo/kafka:latest'
ports:
- '9092:9092'
environment:
- KAFKA_ADVERTISED_HOST_NAME=kafka
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
- ALLOW_PLAINTEXT_LISTENER=yes
volumes:
elasticsearch-data:
driver: local
postgre-data:
driver: local