Running Jfrog Artifactory on Podman

This post is to document the process to run the OSS version of JFrog artifactory on Podman. Below is the podman compose.

version: '3'

networks:
  artifactory-network:
    driver: bridge

services:

  artifactory-postgres:
    container_name: artifactory-postgres
    image: docker.io/library/postgres:17
    environment:
      POSTGRES_USER: artifactory
      POSTGRES_PASSWORD: password
      POSTGRES_DB: artifactory
    ports:
     - 5432:5432
    restart: always
    networks:
     - artifactory-network

  artifactory:
    container_name: artifactory
    image: releases-docker.jfrog.io/jfrog/artifactory-oss:7.104.12
    ports:
     - 8081:8081
     - 8082:8082
    restart: always
    networks:
     - artifactory-network
    depends_on:
     - artifactory-postgres
    environment:
      JF_SHARED_DATABASE_TYPE: postgresql
      JF_SHARED_DATABASE_URL: jdbc:postgresql://artifactory-postgres:5432/artifactory
      JF_SHARED_DATABASE_USERNAME: artifactory
      JF_SHARED_DATABASE_PASSWORD: password
      JF_SHARED_DATABASE_DRIVER: org.postgresql.Driver
podman-compose -f compose-artifactory.yaml up -d

And then head to http://localhost:8081 and use the default admin/password

Notes

One comment

Comments are closed.