Merge "Fix the DB loading script"
[so/docker-config.git] / docker-compose.yml
1 version: '2.1'
2 networks:
3   default:
4     driver: bridge
5     driver_opts:
6       com.docker.network.driver.mtu: ${MTU}
7 services:
8   mariadb:
9     image: mariadb:10.1.11
10     ports:
11       - "3306"
12     volumes:
13       - ./volumes/mariadb/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
14       - ./volumes/mariadb/conf.d:/etc/mysql/conf.d
15     environment:
16       - MYSQL_ROOT_PASSWORD=password
17     hostname:
18       db.mso.testlab.openecomp.org
19     logging:
20       driver: "json-file"
21       options:
22         max-size: "30m"
23         max-file: "5"
24     healthcheck:
25       test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
26       timeout: 20s
27       retries: 10
28   mso:
29     image: openecomp/mso
30     ports:
31       - "3904:3904"
32       - "3905:3905"
33       - "8080:8080"
34       - "9990:9990"
35     volumes:
36       - ./volumes/mso/chef-config:/shared
37     environment:
38       - MYSQL_ROOT_PASSWORD=password
39     hostname:
40       mso.mso.testlab.openecomp.org
41     depends_on:
42       mariadb:
43         condition: service_healthy
44     logging:
45       driver: "json-file"
46       options:
47         max-size: "30m"
48         max-file: "5"