-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
58 lines (53 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
version: '3'
services:
# elasticsearch:
# image: docker.elastic.co/elasticsearch/elasticsearch:$ELASTIC_VERSION
# environment:
# - bootstrap.memory_lock=true
# - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
# - discovery.type=single-node
# ulimits:
# memlock:
# soft: -1
# hard: -1
# mem_limit: 1g
# volumes:
# - esdata1:/usr/share/elasticsearch/data
# ports:
# - "9200:9200"
# - "9300:9300"
zookeeper:
image: wurstmeister/zookeeper
ports:
- "2181:2181"
kafka:
image: wurstmeister/kafka
ports:
- "9092:9092"
environment:
KAFKA_ADVERTISED_HOST_NAME: 127.0.0.1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'false'
organization-scheduling-pro:
image: organization-scheduling-pro-app
build:
context: ./
dockerfile: Dockerfile
environment:
- "SPRING_PROFILES_ACTIVE=docker"
volumes:
- /data/organization-scheduling-pro-app
ports:
- "8085:8085"
# If you use MySQL as Data storage,
# also you need to change application.properties file configs
# mysql:
# container_name: v-mysql
# image: mysql/mysql-server:5.7
# environment:
# MYSQL_DATABASE: test
# MYSQL_ROOT_PASSWORD: root
# MYSQL_ROOT_HOST: '%'
# ports:
# - "3306:3306"
# restart: always