learnsteam-quiz-api/docker/local/docker-compose.yml

31 lines
706 B
YAML
Raw Normal View History

2023-10-19 22:47:12 +09:00
version: "3"
services:
2023-11-18 13:44:03 +09:00
learnsteam-quiz-db:
2023-10-19 22:47:12 +09:00
image: mysql:latest
environment:
2023-11-17 14:27:42 +09:00
MYSQL_ROOT_PASSWORD: fbOgZ6Xxn5VXBYihjqygRXyaK6ZUgKL6
MYSQL_DATABASE: learnsteam_quiz
2023-10-19 22:47:12 +09:00
ports:
2023-11-17 14:27:42 +09:00
- "3306:3306"
2023-10-19 22:47:12 +09:00
volumes:
2023-11-18 13:09:34 +09:00
- db-learnsteam:/var/lib/mysql
2023-11-18 13:44:03 +09:00
learnsteam-quiz-api:
2023-10-19 22:47:12 +09:00
build:
context: ../../
dockerfile: docker/local/Dockerfile
2023-11-17 14:27:42 +09:00
image: learnsteam/learnsteam-quiz-api:local
2023-10-19 22:47:12 +09:00
ports:
- "3030:3030"
2023-11-17 14:27:42 +09:00
depends_on:
2023-11-18 13:44:03 +09:00
- learnsteam-quiz-db
2023-10-19 22:47:12 +09:00
environment:
2023-11-18 13:44:03 +09:00
DB_HOST: learnsteam-quiz-db
2023-10-19 22:47:12 +09:00
DB_PORT: 3306
DB_USER: root
2023-11-17 14:27:42 +09:00
DB_PASSWORD: fbOgZ6Xxn5VXBYihjqygRXyaK6ZUgKL6
DB_NAME: learnsteam_quiz
restart: always
2023-10-19 22:47:12 +09:00
volumes:
2023-11-18 13:09:34 +09:00
db-learnsteam: