blob: e6ecd4c1342c3df10543b6cd3569430fe46a0b3e [file] [log] [blame]
Michael Hwang2de95ed2018-08-01 16:22:13 -04001version: '2.0'
2services:
3
4 dockerregistry:
5 image: "registry:2"
6 container_name: "dockerregistry"
7 restart: "always"
8 hostname: "dockerregistry"
9 environment:
10 - "REGISTRY_HTTP_ADDR=0.0.0.0:8443"
11 - "REGISTRY_HTTP_TLS_CERTIFICATE=/certs/domain.crt"
12 - "REGISTRY_HTTP_TLS_KEY=/certs/domain.key"
13 ports:
14 - "8443:8443"
15 volumes:
16 - /certs:/certs
17 depends_on:
18 - "registrator"
19
20 onboardingdb:
21 image: "postgres:9.5"
22 container_name: "onboardingdb"
23 restart: "always"
24 hostname: "onboardingdb"
25 environment:
26 - "POSTGRES_USER=postgres"
27 - "POSTGRES_PASSWORD=onap123"
28 ports:
29 - "5432:5432"
30 depends_on:
31 - "registrator"
32 labels:
33 - "SERVICE_5432_NAME=onboardingdb"
34 - "SERVICE_5432_CHECK_TCP=true"
35 - "SERVICE_5432_CHECK_INTERVAL=15s"
36 - "SERVICE_5432_CHECK_INITIAL_STATUS=passing"
37
38 consul:
39 image: "consul:0.8.3"
40 container_name: "consul"
41 restart: "always"
42 hostname: "consul"
43 ports:
44 - "8500:8500"
45 environment:
46 - "DOCKER_HOST=tcp://${MYIP}:2376"
47 volumes:
48 - ${PWD}/consul:/opt/consul
49 command: "agent -bind 0.0.0.0 -config-file /opt/consul/config.json"
50 labels:
51 - "SERVICE_8500_NAME=consul"
52 - "SERVICE_8500_CHECK_HTTP=/v1/agent/services"
53 - "SERVICE_8500_CHECK_INTERVAL=15s"
54 - "SERVICE_8500_CHECK_INITIAL_STATUS=passing"
55
56 registrator:
57 image: "onapdcae/registrator:v7"
58 container_name: "registrator"
59 restart: "always"
60 hostname: "consul"
61 environment:
62 - "CONSUL_HOST=consul"
63 - "EXTERNAL_IP=${MYIP}"
64 volumes:
65 - /var/run/docker.sock:/tmp/docker.sock
66 depends_on:
67 - "consul"
68
69 config-binding-service:
70 image: "nexus3.onap.org:10001/onap/org.onap.dcaegen2.platform.configbinding:2.1.5"
71 container_name: "config_binding_service"
72 restart: "always"
73 hostname: "config-binding-service"
74 environment:
75 - "CONSUL_HOST=consul"
76 ports:
77 - "10000:10000"
78 depends_on:
79 - "registrator"
80 labels:
81 - "SERVICE_10000_NAME=config_binding_service"
82 - "SERVICE_10000_CHECK_HTTP=/healthcheck"
83 - "SERVICE_10000_CHECK_INTERVAL=15s"
84 - "SERVICE_10000_CHECK_INITIAL_STATUS=passing"
85 - "SERVICE_443_IGNORE=true"