forked from MT-TEAM-Org/batch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (48 loc) · 1.48 KB
/
Copy pathdocker-compose.yml
File metadata and controls
50 lines (48 loc) · 1.48 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
version: '3.9'
services:
app:
image: ${DOCKER_USERNAME}/play-hive-batch-prod:latest # 사용할 이미지 이름
build:
context: . # Dockerfile이 위치한 디렉토리
dockerfile: Dockerfile # 빌드에 사용할 Dockerfile
ports:
- "8080:8080" # 호스트와 컨테이너의 포트 매핑
environment:
DOCKER_USERNAME: ${DOCKER_USERNAME}
DOCKER_PASSWORD: ${DOCKER_PASSWORD}
DB_ENDPOINT: ${DB_ENDPOINT}
DB_NAME: ${DB_NAME}
DB_PASSWORD: ${DB_PASSWORD}
SLACK_WEBHOOK_URL: ${SLACK_WEBHOOK_URL}
TZ: ${TZ}
JAVA_OPTS: >
-Xms512m
-Xmx1024m
-XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=/app/heap_dump.hprof
restart: always
# zookeeper:
# image: confluentinc/cp-zookeeper:latest
# container_name: zookeeper
# environment:
# ZOOKEEPER_CLIENT_PORT: 2181
# ports:
# - "2181:2181"
# restart: always
#
# kafka:
# image: confluentinc/cp-kafka:latest
# container_name: kafka
# ports:
# - "9092:9092"
# environment:
# KAFKA_BROKER_ID: 1
# KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
# KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092
# KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
# KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT
# KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
# KAFKA_HEAP_OPTS: "-Xms256M -Xmx512M"
# depends_on:
# - zookeeper
# restart: always