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

31 lines
706 B
YAML

version: "3"
services:
learnsteam-quiz-db:
image: mysql:latest
environment:
MYSQL_ROOT_PASSWORD: fbOgZ6Xxn5VXBYihjqygRXyaK6ZUgKL6
MYSQL_DATABASE: learnsteam_quiz
ports:
- "3306:3306"
volumes:
- db-learnsteam:/var/lib/mysql
learnsteam-quiz-api:
build:
context: ../../
dockerfile: docker/local/Dockerfile
image: learnsteam/learnsteam-quiz-api:local
ports:
- "3030:3030"
depends_on:
- learnsteam-quiz-db
environment:
DB_HOST: learnsteam-quiz-db
DB_PORT: 3306
DB_USER: root
DB_PASSWORD: fbOgZ6Xxn5VXBYihjqygRXyaK6ZUgKL6
DB_NAME: learnsteam_quiz
restart: always
volumes:
db-learnsteam: