ChrisRTech
ChrisRTech

Reputation: 577

Artifactory docker-compose

Does anyone have a docker-compose.yml that starts up OSS version of Artifactory? I am using file shown below but I see these errors when container starts up:

Errors:
ArtifactoryClient::http [get] request to /api/system/ping failed with 404 code
ArtifactoryClient::http [get] request to /api/system/ping failed with 503 code

When I try to access http://localhost:8081
my browser redirects to http://localhost:8082/ui/ and says This site can't be reached. localhost refused to connect.

docker-compose.yml

version: "3.3"
services:
  artifactory-service:
    image: docker.bintray.io/jfrog/artifactory-oss
    container_name: artifactory
    networks:
      - ci_net
    ports:
      - 8081:8081
    volumes:
      - artifactory:/var/opt/jfrog/artifactory
      
volumes:
  artifactory:
networks:
  ci_net:

Upvotes: 0

Views: 5386

Answers (2)

Bikram
Bikram

Reputation: 845

To install the latest jfrog using docker compose add below to docker-compose.yml

version: "3.9"

services:
  jfrog:
    container_name: jfrog
    image: releases-docker.jfrog.io/jfrog/artifactory-oss:latest
    ports:
      - "8081:8081"
      - "8082:8082"
    volumes:
      - artifactory_data:/var/opt/jfrog/artifactory
volumes:
  artifactory_data: {}

Upvotes: 0

Muhammed Kashif
Muhammed Kashif

Reputation: 1511

Refer to this JFrog wiki on docker-compose installation and download the Artifactory-Oss tar from this link. You might get the Artifactort-pro tar, download it and change the image to artifactory-oss in the docker-compose.yaml. One more thing, Artifactory oss if 7.x version then 8081 and 8082 ports should be opened.

Upvotes: 3

Related Questions