docker compose
version: '3.7'
services:
mariadb:
image: mariadb
ports:
- "3306:3306"
volumes:
- ./db/conf.d:/etc/mysql/conf.d
- ./db/data:/var/lib/mysql
- ./db/initdb.d:/docker-entrypoint-initdb.d
environment:
MYSQL_HOST: localhost
MYSQL_ROOT_PASSWORD: rootpw
MYSQL_ROOT_HOST: '%'
TZ: Asia/Seoul
networks:
- default
restart: always
stdin_open: true
tty: true
redis:
image: redis
command: redis-server --requirepass redispw --port 6379
container_name: redis6379
hostname: redis6379
labels:
- "name=redis"
- "mode=standalone"
ports:
- "6379:6379"
networks:
- default
volumes:
- ./redis:/data
restart: always
stdin_open: true
tty: true
rabbitmq:
image: 'rabbitmq'
container_name: rabbitmq-stream
ports:
- "5672:5672"
- "15672:15672"
networks:
- default
volumes:
- ./rabbitmq/data:/var/lib/rabbitmq
- ./rabbitmq/log:/var/log/rabbitmq
environment:
RABBITMQ_ERLANG_COOKIE: "RabbitMQ-My-Cookies"
RABBITMQ_DEFAULT_USER: "admin"
RABBITMQ_DEFAULT_PASS: "adminpw"
restart: always
stdin_open: true
tty: true
elasticsearch:
container_name: elasticsearch
image: elasticsearch:8.0.0
ports:
- "9200:9200"
- "9300:9300"
networks:
- default
volumes:
- ./elasticsearch:/usr/share/elasticsearch/data
environment:
- ELASTIC_USERNAME=elastic
- ELASTIC_PASSWORD=elasticpw
- xpack.security.enabled=false
- xpack.security.transport.ssl.enabled=false
- http.cors.enabled=true
- http.cors.allow-origin=*
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- TZ=Asia/Seoul
restart: always
privileged: true
stdin_open: true
tty: true
kibana:
container_name: kibana
image: kibana:8.0.0
ports:
- "5601:5601"
networks:
- default
environment:
ELASTICSERCH_UTL: http://elasticsearch:9200
ELASTICSEARCH_HOSTS: http://elasticsearch:9200
TZ: Asia/Seoul
restart: always
privileged: true
stdin_open: true
tty: true
networks:
default:
external:
name: local-env-network
# docker network create local-env-network
'서버 > 기타' 카테고리의 다른 글
Github Actions OIDC 이용한 AWS ECR 이미지 업로드 (0) | 2024.05.03 |
---|---|
[Jenkins] Pipeline을 활용한 배포 (1) | 2023.01.31 |
[docker] 컨테이너에 접속하기 (0) | 2022.02.17 |
Jenkins, Bitbucket(Git, private Repo) (0) | 2021.11.30 |
Linux Tomcat 설치 및 설정 (1) | 2019.09.20 |