Merge "Improve policy Config"
[clamp.git] / extra / docker / clamp / docker-compose.yml
1 version: '2'
2
3 services:
4   db:
5     image: mariadb:10.1.11
6     volumes:
7       - "/var/lib/mysql"
8       - "../mariadb/conf1:/etc/mysql/conf.d:ro"
9       - "../../sql/:/docker-entrypoint-initdb.d:ro"
10     environment:
11       - MYSQL_ROOT_PASSWORD=strong_pitchou
12     ports:
13       - "3306:3306"
14
15   clamp:
16     image: onap/clamp
17     volumes:
18       - "./config/:/opt/clamp/config:rw"
19     depends_on:
20       - db
21     env_file:
22       - clamp.env
23     ports:
24       - "8080:8080"
25
26   third_party_proxy:
27     image: python:2-slim
28     volumes:
29       - "../../../src/test/resources/http-cache/example/:/thirdparty:rw"
30       - "../../../src/test/resources/http-cache/:/script/:ro"
31     ports:
32       - "8085:8085"
33     command: /bin/sh -c "pip install requests &&  pip install simplejson && python -u /script/third_party_proxy.py -v true --port 8085 --root /thirdparty --proxyaddress third_party_proxy:8085"