Docker Community Forums

Share and learn in the Docker community.

Ugrade compose-file from 1 to 3


(Lagaree) #1

Somebody help me upgrade my compose file ?
######################################
pgxivocc:
image: xivoxc/pgxivocc:latest

ports:

  • 5443:5432

volumes_from:

  • postgresvols
  • timezone

environment:

  • POSTGRES_PASSWORD=xivocc

restart: always

postgresvols:
image: ubuntu:14.04.3

volumes:

  • /var/lib/postgresql/data

xivo_replic:
image: “xivoxc/xivo-db-replication:${XIVOCC_TAG}.${XIVOCC_DIST}”

links:

  • pgxivocc:db
  • elasticsearch:elasticsearch

environment:

  • JAVA_OPTS=-Xms256m -Xmx256m
  • XIVO_HOST
  • ELASTICTTL
  • DISABLEELASTIC
  • DISABLECONFIGMGT

volumes_from:

  • timezone
  • xivocclogs

restart: always

xivo_stats:
image: “xivoxc/xivo-full-stats:${XIVOCC_TAG}.${XIVOCC_DIST}”

links:

  • pgxivocc:db

environment:

  • JAVA_OPTS=-Xms256m -Xmx2048m
  • XIVO_HOST

volumes_from:

  • timezone
  • xivocclogs

restart: always

pack_reporting:
image: “xivoxc/pack-reporting:${XIVOCC_TAG}.${XIVOCC_DIST}”

links:

  • pgxivocc:reporting

environment:

  • WEEKS_TO_KEEP

volumes_from:

  • timezone
  • xivocclogs

restart: always

elasticsearch:
image: elasticsearch:1.7.2

ports:

  • “9200:9200”
  • “9300:9300”

volumes_from:

  • timezone

restart: always

kibana_volumes:
image: xivoxc/kibana_volume:latest

restart: always

fingerboard:
image: xivoxc/fingerboard:${XIVOCC_TAG}.${XIVOCC_DIST}

restart: always

nginx:
image: xivoxc/xivoxc_nginx:${XIVOCC_TAG}.${XIVOCC_DIST}

ports:

  • 80:80
  • 443:443
  • 8443:8443

links:

  • elasticsearch
  • xuc
  • xucmgt

extra_hosts:

  • “xivo_host:${XIVO_HOST}”

volumes_from:

  • kibana_volumes
  • fingerboard

volumes:

  • /etc/docker/nginx/ssl:/etc/nginx/ssl

restart: always

spagobi:
image: “xivoxc/spagobi:${XIVOCC_TAG}.${XIVOCC_DIST}”

ports:

  • 9500:8080

environment:

  • JAVA_OPTS=-Dexternal.host=${REPORTING_HOST}

links:

  • pgxivocc:db

volumes_from:

  • timezone

volumes:

  • /var/log/xivocc/spagobi:/usr/local/tomcat/logs

restart: always

recording_rsync:
image: xivoxc/recording-rsync:latest

volumes:

  • /var/spool/recording-server:/var/spool/recording-server

restart: always

ports:

  • 873:873

config_mgt:
image: “xivoxc/config-mgt:${XIVOCC_TAG}.${XIVOCC_DIST}”

links:

  • pgxivocc:db

ports:

  • 9100:9000

environment:

  • JAVA_OPTS=-Xms64m -Xmx128m
  • XIVO_HOST

volumes_from:

  • timezone
  • xivocclogs

restart: always

recording_server:
image: “xivoxc/recording-server:${XIVOCC_TAG}.${XIVOCC_DIST}”

links:

  • pgxivocc:db
  • pgxivocc:reporting
  • config_mgt:configmgt

ports:

  • 9400:9000

environment:

  • JAVA_OPTS=-Xms64m -Xmx128m
  • XIVO_HOST
  • CONFIG_MGT_HOST
  • CONFIG_MGT_PORT
  • RECORDING_WEEKS_TO_KEEP

restart: always

volumes_from:

  • timezone
  • xivocclogs

volumes:

  • /var/spool/recording-server:/var/spool/recording-server

xuc:
image: “xivoxc/xuc:${XIVOCC_TAG}.${XIVOCC_DIST}”

ports:

  • ${XUC_PORT}:9000

environment:

  • JAVA_OPTS=-Xms512m -Xmx1024m
  • XIVO_HOST
  • CONFIG_MGT_HOST
  • CONFIG_MGT_PORT
  • RECORDING_SERVER_HOST
  • RECORDING_SERVER_PORT
  • XIVO_AMI_SECRET
  • XIVO_AMI_PORT
  • XIVO_CTI_VERSION
  • API_eventUrl
  • XIVO_DIRD_PROFILE
  • SECURED_KRB5_PRINCIPAL

volumes_from:

  • xivocclogs
  • timezone

links:

  • recording_server:recording
  • config_mgt:config

log_driver: “json-file”

restart: always

xucmgt:
image: “xivoxc/xucmgt:${XIVOCC_TAG}.${XIVOCC_DIST}”

ports:

  • 8070:9000

environment:

  • JAVA_OPTS=-Xms256m -Xmx512m
  • XUC_HOST
  • XUC_PORT
  • SHOW_RECORDING_CONTROLS
  • SHOW_CALLBACKS
  • SHOW_QUEUE_CONTROLS
  • THIRD_PARTY_URL
  • ENFORCE_MANAGER_SECURITY
  • USE_SSO

volumes_from:

  • timezone
  • xivocclogs

log_driver: “json-file”

restart: always

timezone:
image: ubuntu:14.04.3

volumes:

  • /etc/timezone:/etc/timezone:ro
  • /etc/localtime:/etc/localtime:ro

xivocclogs:
image: ubuntu:14.04.3
volumes:

  • /var/log/xivocc:/opt/docker/var/log
    ############