Version 2 of docker-compose
[so/docker-config.git] / docker-compose.yml
1 version: '2'
2
3 services:
4   mariadb:
5     image: mariadb:10.1.11
6     ports:
7       - "3306"
8     volumes:
9       - ./volumes/mariadb/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
10       - ./volumes/mariadb/conf.d:/etc/mysql/conf.d
11     environment:
12       - MYSQL_ROOT_PASSWORD=password
13     hostname:
14       db.mso.testlab.openecomp.org
15     logging:
16       driver: "json-file"
17       options:
18         max-size: "30m"
19         max-file: "5"
20
21   mso:
22     image: ecomp/mso
23     ports:
24       - "3904:3904"
25       - "3905:3905"
26       - "8080:8080"
27       - "9990:9990"
28     volumes:
29       - ./volumes/mso/chef-config:/shared
30     environment:
31       - MYSQL_ROOT_PASSWORD=password
32     hostname:
33       mso.mso.testlab.openecomp.org
34     depends_on:
35       - mariadb
36     logging:
37       driver: "json-file"
38       options:
39         max-size: "30m"
40         max-file: "5"