blob: 5f631b8ba0a0735a97ece91e54d1751a3ce50b33 [file] [log] [blame]
## ---------------------------------------------------------------------------
## Licensed to the Apache Software Foundation (ASF) under one or more
## contributor license agreements. See the NOTICE file distributed with
## this work for additional information regarding copyright ownership.
## The ASF licenses this file to You under the Apache License, Version 2.0
## (the "License"); you may not use this file except in compliance with
## the License. You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
## ---------------------------------------------------------------------------
version: '3.0'
services:
database:
image: "mysql/mysql-server:5.7"
hostname: mysql
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=saga
- MYSQL_USER=saga
- MYSQL_PASSWORD=password
alpha:
links:
- "database:mysql.servicecomb.io"
environment:
- JAVA_OPTS=-Dspring.profiles.active=mysql
- WAIT_FOR_SERVICES=mysql.servicecomb.io:3306:150
depends_on:
- database