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

31 lines
700 B
YAML

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