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

31 lines
694 B
YAML
Raw Normal View History

2023-11-10 18:34:35 +09:00
version: "3"
services:
2023-11-18 13:45:18 +09:00
learnsteam-db:
2023-11-10 18:34:35 +09:00
image: mysql:latest
environment:
MYSQL_ROOT_PASSWORD: fbOgZ6Xxn5VXBYihjqygRXyaK6ZUgKL6
MYSQL_DATABASE: learnsteam_quiz
ports:
- "33062:3306"
volumes:
- db-learnsteam-quiz:/var/lib/mysql
2023-11-18 13:45:18 +09:00
learnsteam-quiz:
2023-11-10 18:34:35 +09:00
build:
context: ../../
dockerfile: docker/local/Dockerfile
image: learnsteam/learnsteam-quiz:local
ports:
- "3100:3100"
2023-11-10 18:34:35 +09:00
environment:
2023-11-18 13:45:18 +09:00
DB_HOST: learnsteam-db
2023-11-10 18:34:35 +09:00
DB_PORT: 3306
DB_USER: root
DB_PASSWORD: fbOgZ6Xxn5VXBYihjqygRXyaK6ZUgKL6
DB_NAME: learnsteam_quiz
depends_on:
2023-11-18 13:45:18 +09:00
- learnsteam-db
2023-11-10 18:34:35 +09:00
restart: always
volumes:
db-learnsteam-quiz: