docker-compose -f docker-compose-local.yml up
version: "3.8"
services:
pharmacy-recommendation-redis:
container_name: pharmacy-recommendation-redis
build:
dockerfile: Dockerfile
context: ./redis
image: yeongbin6483/pharmacy-recommendation-redis
ports:
- "6379:6379"
pharmacy-recommendation-database:
container_name: pharmacy-recommendation-database
build:
dockerfile: Dockerfile
context: ./database
image: yeongbin6483/pharmacy-recommendation-database
environment:
- MARIADB_DATABASE=pharmacy-recommendation
- MARIADB_ROOT_PASSWORD=${SPRING_DATASOURCE_PASSWORD}
volumes:
- ./database/config:/etc/mysql/conf.d
ports:
- "13306:3306"
'DevOps > 도커' 카테고리의 다른 글
도커 컨테이너 (0) | 2024.09.25 |
---|---|
mysql docker 설치 방법 (명령어) (0) | 2023.01.24 |
도커 컴포즈로 mysql db 띄우기 (0) | 2022.12.17 |
댓글