diff options
author | 2019-10-01 14:51:51 +0200 | |
---|---|---|
committer | 2019-10-03 10:25:56 +0200 | |
commit | f2805494b772201a94334e2c2f72315cacd8266b (patch) | |
tree | f69ccab3eab9cc4005ae9b1e99c3f659dee5db42 /portal-BE/docker-compose.yml | |
parent | 1b2222568e5e8f32fa0f18fc854f9df79e8508f3 (diff) |
docker-compose fix
docker-compose fix
Issue-ID: PORTAL-710
Change-Id: I613a86c1cbc1446ead5f4e543bb09fcd288a4a7a
Signed-off-by: Dominik Mizyn <d.mizyn@samsung.com>
Diffstat (limited to 'portal-BE/docker-compose.yml')
-rw-r--r-- | portal-BE/docker-compose.yml | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/portal-BE/docker-compose.yml b/portal-BE/docker-compose.yml index 7c44e82f..2228a997 100644 --- a/portal-BE/docker-compose.yml +++ b/portal-BE/docker-compose.yml @@ -6,14 +6,21 @@ # docker login -u USER -p PASS nexus3.onap.org:10001 # Uses healthcheck feature added in docker-compose v2.1 -version: '2.1' +version: '3.1' services: portal-db: - image: portal_mariadb + image: mariadb +# image: mysql container_name: portal_mariaDB + ports: + - 3306:3306 + restart: on-failure environment: - MYSQL_DATABASE: testdb + - MYSQL_DATABASE=testdb + - MYSQL_USER=portal + - MYSQL_PASSWORD=Test123456 + - MYSQL_RANDOM_ROOT_PASSWORD=yes healthcheck: test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"] networks: @@ -26,8 +33,7 @@ services: ports: - 8080:8080 depends_on: - portal-db: - condition: service_healthy + - portal-db networks: - backend |