jfrog / artifactory-docker-examples

Examples for using Artifactory Docker distribution in various environments
https://www.jfrog.com/artifactory/
Apache License 2.0
330 stars 300 forks source link

Using NFS (GlusterFS) with Artifactory #167

Open marcuschaney opened 5 years ago

marcuschaney commented 5 years ago

Good Morning,

I'm having an issues trying to mount GlusterFS to my Artifactory container. Do you all have any examples of how to mount NFS to a container, via Compose?

V/r Marcus

marcuschaney commented 5 years ago

Copy of my config is attached.

volumes:
  art-mount:
    driver: local
    driver_opts:
      type: none
      device: /var/opt/jfrog/artifactory/data
      o: bind
services:
  artifactory:
    image: 5f86c7980758
    container_name: artifactory
    ports:
     - 8081:8081
    volumes:
     - /data/artifactory/artifactory_extra_conf:/artifactory_extra_conf:Z
     - /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.212.b04-0.el7_6.x86_64/jre/lib/security/cacerts/cacerts:/artifactory_extra_conf/cacerts:Z
     - art-mount:/opt/jfrog/artifactory/data/filestore
    environment:
     - JAVA_OPTS=-Djavax.net.ssl.trustStore=/var/opt/jfrog/artifactory/etc/cacerts -Djavax.net.ssl.trustStorePassword=changeit -Djavax.net.debug=ssl
     - DB_TYPE=postgresql
     - DB_USER=artifactory
     - DB_PASSWORD=xxxxxxxx
     - DB_HOST=xxxxxxxxxxxx
     - DB_PORT=5432
    restart: always
    ulimits:
      nproc: 65535
      nofile:
        soft: 32000
        hard: 40000
  nginx:
    image: dda86cdb122c
    container_name: nginx
    volumes:
     - /data/nginx:/etc/nginx/conf.d
    ports:
     - 80:80
     - 443:443
    restart: always
    ulimits:
      nproc: 65535
      nofile:
        soft: 32000
        hard: 40000

#################################

Filesystem Size Used Avail Use% Mounted on gluster-001:/artifactory 28G 326M 26G 2% /var/opt/jfrog/artifactory/data