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
- The documentation for Jfrog artifactory doesn’t give much information on how to utilize environment variables to configure. https://jfrog.com/help/r/jfrog-installation-setup-documentation/install-artifactory-single-node-with-docker
- The pattern I found was that for anything in the system.xml file could be extrapolated with a prefix of
JF_
and then the yaml hierarchical name for the element, in all caps, separated by underscores.
One comment
Comments are closed.