Bonjour,
ma commande $ docker-compose up
m’indique l’utilisation du port 6379
comment configurer la redirection sur le port 3000 ?
résultat sur ubuntu xenial
$ docker-compose up
Recreating fabmanager_redis_1
Recreating fabmanager_elasticsearch_1
Recreating fabmanager_postgres_1
Recreating fabmanager_fabmanager_1
Recreating fabmanager_nginx_1
Attaching to fabmanager_postgres_1, fabmanager_redis_1, fabmanager_elasticsearch_1, fabmanager_fabmanager_1, fabmanager_nginx_1
postgres_1 | LOG: database system was shut down at 2017-11-03 14:47:56 UTC
postgres_1 | LOG: MultiXact member wraparound protections are now enabled
postgres_1 | LOG: database system is ready to accept connections
postgres_1 | LOG: autovacuum launcher started
redis_1 | 1:C 06 Nov 09:37:31.615 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
redis_1 | .- `. `_. ''-._ Redis 3.0.7 (00000000/0) 64 bit redis_1 | ( ' , .-` | `, ) Running in standalone mode redis_1 | |`-._`-...-` __...-.
-.|‹ _.-'| Port: 6379 redis_1 | |
-._ `._ / _.- › | PID: 1
redis_1 | 1:M 06 Nov 09:37:31.618 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
redis_1 | 1:M 06 Nov 09:37:31.618 # Server started, Redis version 3.0.7
redis_1 | 1:M 06 Nov 09:37:31.618 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add ‹ vm.overcommit_memory = 1 › to /etc/sysctl.conf and then reboot or run the command ‹ sysctl vm.overcommit_memory=1 › for this to take effect.
redis_1 | 1:M 06 Nov 09:37:31.618 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command ‹ echo never > /sys/kernel/mm/transparent_hugepage/enabled › as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
redis_1 | 1:M 06 Nov 09:37:31.619 * DB loaded from disk: 0.001 seconds
redis_1 | 1:M 06 Nov 09:37:31.619 * The server is now ready to accept connections on port 6379
fabmanager_1 | /usr/lib/python2.7/dist-packages/supervisor/options.py:296: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a « -c » argument specifying an absolute path to a configuration file for improved security.
fabmanager_1 | 'Supervisord is running as root and it is searching ’
fabmanager_1 | 2017-11-06 09:37:33,218 CRIT Set uid to user 0
fabmanager_1 | 2017-11-06 09:37:33,218 WARN Included extra file « /etc/supervisor/conf.d/fablab.conf » during parsing
fabmanager_1 | 2017-11-06 09:37:33,238 INFO RPC interface ‹ supervisor › initialized
fabmanager_1 | 2017-11-06 09:37:33,238 CRIT Server ‹ unix_http_server › running without any HTTP authentication checking
fabmanager_1 | 2017-11-06 09:37:33,239 INFO supervisord started with pid 1
elasticsearch_1 | [2017-11-06 09:37:34,237][INFO ][node ] [Karkas] version[1.7.6], pid[1], build[c730b59/2016-11-18T15:21:16Z]
elasticsearch_1 | [2017-11-06 09:37:34,239][INFO ][node ] [Karkas] initializing …
fabmanager_1 | 2017-11-06 09:37:34,240 INFO spawned: ‹ app › with pid 8
fabmanager_1 | 2017-11-06 09:37:34,241 INFO spawned: ‹ worker › with pid 9
elasticsearch_1 | [2017-11-06 09:37:34,399][INFO ][plugins ] [Karkas] loaded [], sites []
elasticsearch_1 | [2017-11-06 09:37:34,455][INFO ][env ] [Karkas] using [1] data paths, mounts [[/usr/share/elasticsearch/data (/dev/mapper/flfabmanager–vg-root)]], net usable_space [43.6gb], net total_space [56.4gb], types [ext4]
fabmanager_1 | 2017-11-06 09:37:35,243 INFO success: app entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
fabmanager_1 | 2017-11-06 09:37:35,243 INFO success: worker entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
elasticsearch_1 | [2017-11-06 09:37:38,920][INFO ][node ] [Karkas] initialized
elasticsearch_1 | [2017-11-06 09:37:38,920][INFO ][node ] [Karkas] starting …
elasticsearch_1 | [2017-11-06 09:37:39,158][INFO ][transport ] [Karkas] bound_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish_address {inet[/172.19.0.3:9300]}
elasticsearch_1 | [2017-11-06 09:37:39,240][INFO ][discovery ] [Karkas] elasticsearch/7anHRoM6RsKllTzefZ028w
elasticsearch_1 | [2017-11-06 09:37:43,065][INFO ][cluster.service ] [Karkas] new_master [Karkas][7anHRoM6RsKllTzefZ028w][5655a7d0978b][inet[/172.19.0.3:9300]], reason: zen-disco-join (elected_as_master)
elasticsearch_1 | [2017-11-06 09:37:43,134][INFO ][http ] [Karkas] bound_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish_address {inet[/172.19.0.3:9200]}
elasticsearch_1 | [2017-11-06 09:37:43,135][INFO ][node ] [Karkas] started
elasticsearch_1 | [2017-11-06 09:37:43,150][INFO ][gateway ] [Karkas] recovered [0] indices into cluster_state
fabmanager_1 | 2017-11-06 09:37:45,255 INFO exited: worker (exit status 1; not expected)
fabmanager_1 | 2017-11-06 09:37:45,265 INFO spawned: ‹ worker › with pid 20
fabmanager_1 | 2017-11-06 09:37:45,266 INFO exited: app (exit status 1; not expected)
…
$ docker-compose up -d
Starting fabmanager_elasticsearch_1
Starting fabmanager_redis_1
Starting fabmanager_postgres_1
Starting fabmanager_fabmanager_1
Starting fabmanager_nginx_1
$ docker-compose ps
Name Command State Ports
fabmanager_elast /docker- Up 9200/tcp,
icsearch_1 entrypoint.sh elas … 9300/tcp
fabmanager_fabmanager_1 /usr/bin/supervisord Up 3000/tcp
fabmanager_fabmanager_run_2 /usr/bin/supervisord Up 3000/tcp
fabmanager_nginx_1 nginx -g daemon Up 0.0.0.0:443->443
off; /tcp, 0.0.0.0:80
->80/tcp
fabmanager_postgres_1 docker-entrypoint.sh Up 5432/tcp
postgres
fabmanager_redis_1 docker-entrypoint.sh Up 6379/tcp
redis …