123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295 |
- version: '2.2'
- services:
- nginx:
- build:
- context: extra/nginx/
- image: 'docker.infra.flowdat.com/fd3/nginx:latest'
- env_file:
- - host.env
- restart: 'on-failure:10'
- ports:
- - '80:80'
- - '443:443'
- volumes:
- - '/var/run/docker.sock:/tmp/docker.sock:ro'
- - './extra/nginx/certs:/etc/nginx/certs:ro'
- - './extra/nginx/vhost.d:/etc/nginx/vhost.d'
- - './extra/nginx/share:/usr/share/nginx/html'
- base:
- image: 'docker.infra.flowdat.com/fd3/base:latest'
- restart: 'on-failure:10'
- links:
- - 'mysql:mysql'
- - amqp
- env_file:
- - running.env
- - host.env
- - base.host.env
- volumes:
- - './base/:/opt/base'
- ftth:
- image: 'docker.infra.flowdat.com/fd3/ftth:latest'
- restart: 'on-failure:10'
- links:
- - 'mysql:mysql'
- - base
- - amqp
- - 'base:base.test.flowdat.com'
- env_file:
- - running.env
- - host.env
- - ftth.host.env
- - ftth.oauth.env
- volumes:
- - './ftth/:/opt/ftth'
- stats:
- image: 'docker.infra.flowdat.com/fd3/stats:latest'
- restart: 'on-failure:10'
- links:
- - 'mysql:mysql'
- - base
- - amqp
- - 'base:base.test.flowdat.com'
- volumes:
- - './stats/:/opt/stats'
- env_file:
- - running.env
- - host.env
- - stats.host.env
- - stats.oauth.env
- mapas:
- image: 'docker.infra.flowdat.com/fd3/mapas:latest'
- restart: 'on-failure:10'
- links:
- - 'mysql:mysql'
- - base
- - amqp
- - 'base:base.test.flowdat.com'
- env_file:
- - running.env
- - host.env
- - mapas.host.env
- - mapas.oauth.env
- volumes:
- - './mapas/:/opt/mapas'
- - './mapas/web/uploads:/opt/mapas/web/uploads'
- cablemodem:
- image: 'docker.infra.flowdat.com/fd3/cablemodem:latest'
- restart: 'on-failure:10'
- links:
- - 'mysql:mysql'
- - base
- - amqp
- - 'base:base.test.flowdat.com'
- env_file:
- - running.env
- - host.env
- - cablemodem.host.env
- - cablemodem.oauth.env
- volumes:
- - './cablemodem/:/opt/cablemodem'
- - './cablemodem/web/uploads:/opt/cablemodem/web/uploads'
- radius:
- image: 'docker.infra.flowdat.com/fd3/radius:latest'
- restart: 'on-failure:10'
- links:
- - 'mysql:mysql'
- - base
- - amqp
- - 'base:base.test.flowdat.com'
- env_file:
- - running.env
- - host.env
- - radius.host.env
- - radius.oauth.env
- volumes:
- - './radius/:/opt/radius'
- dhcp:
- image: 'docker.infra.flowdat.com/fd3/dhcp:latest'
- restart: 'on-failure:10'
- links:
- - 'mysql:mysql'
- - base
- - amqp
- - 'base:base.test.flowdat.com'
- env_file:
- - running.env
- - host.env
- - dhcp.host.env
- - dhcp.oauth.env
- volumes:
- - './dhcp/:/opt/dhcp'
- mysql:
- image: 'docker.infra.flowdat.com/fd3/mysql:latest'
- build:
- context: ./extra/mysql
- env_file:
- - mysql.host.env
- volumes:
- - './mysql/:/var/lib/mysql/'
- amqp:
- image: 'rabbitmq:3-management'
- restart: 'on-failure:10'
- mongodb:
- image: 'mongo:3.4'
- volumes:
- - './mongodb:/data/db'
- redis:
- image: 'redis:latest'
- command: 'redis-server --appendonly yes'
- restart: 'on-failure:10'
- genieacs-cwmp:
- build:
- context: extra/genieacs/genieacs-cwmp
- links:
- - mongodb
- - redis
- ports:
- - '7547:7547'
- restart: 'on-failure:10'
- genieacs-nbi:
- build:
- context: extra/genieacs/genieacs-nbi
- links:
- - mongodb
- - redis
- ports:
- - '7557:7557'
- restart: 'on-failure:10'
- genieacs-fs:
- build:
- context: extra/genieacs/genieacs-fs
- links:
- - mongodb
- - redis
- ports:
- - '7567:7567'
- restart: 'on-failure:10'
- genieacs-gui:
- build:
- context: extra/genieacs/genieacs-gui
- links:
- - genieacs-nbi
- ports:
- - '3001:3000'
- restart: 'on-failure:10'
- freeradius:
- image: 'docker.infra.flowdat.com/fd3/freeradius:latest'
- links:
- - mysql
- env_file:
- - mysql.host.env
- - freeradius.host.env
- grafana:
- image: grafana/grafana
- links:
- - mysql
- restart: 'on-failure:10'
- env_file:
- - mysql.host.env
- volumes:
- - './extra/statsd/grafana/lib:/var/lib/grafana'
- statsd:
- build:
- context: ./extra/statsd/statsd
- image: 'docker.infra.flowdat.com/fd3/statsd:latest'
- ports:
- - '8125:8125/udp'
- links:
- - mysql
- - mongodb
- restart: 'on-failure:10'
- volumes:
- - './extra/statsd/statsd/statsd.config.js:/opt/config/statsd.config.js'
- jsendpoint:
- build:
- context: ./extra/statsd/endpoint/json
- image: 'docker.infra.flowdat.com/fd3/jsonep:latest'
- volumes:
- - './extra/statsd/endpoint/json:/opt/datasource'
- links:
- - jsonep_mysql
- - jsonep_mongo
- restart: 'on-failure:10'
- jsonep_mysql:
- build:
- context: ./extra/statsd/endpoint/mysql
- image: 'docker.infra.flowdat.com/fd3/jsonep_mysql:latest'
- volumes:
- - './extra/statsd/endpoint/mysql:/opt/datasource'
- links:
- - mysql
- env_file:
- - mysql.host.env
- restart: 'on-failure:10'
- jsonep_mongo:
- build:
- context: ./extra/statsd/endpoint/mongodb
- image: 'docker.infra.flowdat.com/fd3/jsonep_mongo:latest'
- volumes:
- - './extra/statsd/endpoint/mongodb:/opt/datasource'
- links:
- - mongodb
- restart: 'on-failure:10'
- supervisord:
- build:
- context: ./extra/supervisord
- image: 'docker.infra.flowdat.com/fd3/supervisord:latest'
- privileged: true
- restart: 'on-failure:10'
- volumes:
- - './extra/supervisord/:/etc/supervisord/'
- - './extra/supervisord/var/:/var/log/supervisor/'
- - './extra/supervisord/sshd_config:/etc/ssh/sshd_config'
- - './extra/supervisord/bin/fiberhome:/usr/bin/fiberhome'
- - './extra/supervisord/bin/fiberlink:/usr/bin/fiberlink'
- base_log_worker:
- image: 'docker.infra.flowdat.com/fd3/base:latest'
- build:
- context: ./base/
- command: 'bin/console rabbitmq:consumer log_consumer'
- restart: 'on-failure:10'
- links:
- - mysql
- - base
- - amqp
- - 'nginx:base.test.flowdat.com'
- volumes:
- - './base/:/opt/base'
- ftth_command_worker:
- image: 'docker.infra.flowdat.com/fd3/ftth:latest'
- build:
- context: ./ftth/
- command: 'bin/console rabbitmq:consumer command_consumer'
- restart: 'on-failure:10'
- links:
- - mysql
- - base
- - amqp
- - 'nginx:base.test.flowdat.com'
- volumes:
- - './ftth/:/opt/ftth'
- ftth_tasklogger_worker:
- image: 'docker.infra.flowdat.com/fd3/ftth:latest'
- build:
- context: ./ftth/
- command: 'bin/console rabbitmq:consumer flowdat_tasklogger'
- restart: 'on-failure:10'
- links:
- - mysql
- - base
- - amqp
- - 'nginx:base.test.flowdat.com'
- volumes:
- - './ftth/:/opt/ftth'
- stats_command_worker:
- image: 'docker.infra.flowdat.com/fd3/ftth:latest'
- build:
- context: ./stats/
- command: 'bin/console rabbitmq:consumer command_consumer'
- environment:
- - ./extra/supervisord/=/etc/supervisord/
- - ./extra/supervisord/var/=/var/log/supervisor/
- - ./extra/supervisord/sshd_config=/etc/ssh/sshd_config
- - ./extra/supervisord/bin/fiberhome=/usr/bin/fiberhome
- - ./extra/supervisord/bin/fiberlink=/usr/bin/fiberlink
|