blob: 2228a997accd559689bc560d1a380e375c4102a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# docker-compose for ONAP portal containers: database, microservice, portal apps.
# Relies on .env file, which CANNOT be specified via command-line option
# Works in multiple environments; does not pull from a Nexus registry.
# Exposes the portal apps docker (but not DB nor WMS dockers) on the host network.
# Images must be pulled from ONAP Nexus registry after logging in like this:
# docker login -u USER -p PASS nexus3.onap.org:10001
# Uses healthcheck feature added in docker-compose v2.1
version: '3.1'
services:
portal-db:
image: mariadb
# image: mysql
container_name: portal_mariaDB
ports:
- 3306:3306
restart: on-failure
environment:
- MYSQL_DATABASE=testdb
- MYSQL_USER=portal
- MYSQL_PASSWORD=Test123456
- MYSQL_RANDOM_ROOT_PASSWORD=yes
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
networks:
- backend
portal-app:
image: portal_app
container_name: portal_APP
restart: on-failure
ports:
- 8080:8080
depends_on:
- portal-db
networks:
- backend
networks:
backend:
driver: bridge
|