Go to the download page, click the green arrow to download Docker Compose. Extract the contents of the compressed archive (.tar.gz file) and then go to the extracted folder.
tar -xvf jfrog-artifactory-<pro|oss|cpp-ce>-<version>-compose.tar.gz
.env file included within the Docker Compose Archive
This
.env
file is used by Docker Compose and is updated during installations and upgrades.Notice that some operating systems do not display dot files by default. If you've made any changes to the file, remember to backup before an upgrade.
Create the following folder structure under
$JFROG_HOME/artifactory
-- [1030 1030 ] var |-- [1030 1030 ] data | |-- [104 107] nginx - Necessary if you want to add nginx | `-- [999 999] postgres - Necessary if you want to add postgres |-- [1030 1030 ] etc
Enter the following commands in order so that you can set the ownership correctly.
chown -R 1030:1030 $JFROG_HOME/artifactory/var chown -R 1030:1030 $JFROG_HOME/artifactory/var/data chown -R 1030:1030 $JFROG_HOME/artifactory/var/etc chown -R 104:107 $JFROG_HOME/artifactory/var/data/nginx chown -R 999:999 $JFROG_HOME/artifactory/var/data/postgres
Copy the appropriate Docker Compose templates from the templates folder to the extracted folder. Rename it as
docker-compose.yaml
Requirement
Template
Artifactory + Derby (inbuilt database)
docker-compose.yaml
Artifactory + Postgres
docker-compose-postgres.yaml
Artifactory + Nginx
docker-compose-nginx.yaml
Update the
.env
file with the installation directory.ROOT_DATA_DIR=$JFROG_HOME/artifactory ##Enter the exact value of $JFROG_HOME. For example, /root/.jfrog.
Customize the product configuration.
Customize the PostgreSQL Database connection details. (optional)
Set any additional configurations (for example: ports, node id) using the Artifactory
system.yaml
configuration file .Note
Ensure the host's ID "shared.node.id" and IP "shared.node.ip" are added to the
system.yaml
. If these are not added, the container's IP will be used and other Platform Deployments, products will be unable to reach this instance
Start Artifactory using docker-compose commands.
docker-compose -p rt logs docker-compose -p rt ps docker-compose -p rt up -d docker-compose -p rt down
Access Artifactory from your browser at:
http://SERVER_HOSTNAME:8082/ui/
. For example, on your local machine:http://localhost:8082/ui/
.Check Artifactory Log.
docker-compose -p rt logs
Configure log rotation of the console log
The
console.log
file can grow quickly since all services write to it. For more information, see configure the log rotation.