Compose every dependencies needed to get a fully working Aloes network
sudo groupadd docker
sudo usermod -aG docker <non-root user>
sudo systemctl enable docker.service
Many developers using nginx inside docker uncountered this issue
Update hosts file to point your servername to the loopback network ( not sure it helped ).
Manually :
-
Create
.env
at root -
Create
.env.local
and/or.env
in./config/device-manager/
or using helper :
chmod a+x ./aloes.sh
./aloes.sh --command create
./aloes.sh -c create -e local
If you intend to run in local mode ( no domain redirection ), you just have to configure environment variables and config files.
- First you have to configure properly PROXY_SERVER_HOST and PROXY_DOMAIN in
.env
.
Using helper, after creating environment variables, you will be asked to generate SSL certs too :
./aloes.sh -c create --env production
chmod a+x ./config/mongo/mongodump.sh
./config/mongo/mongodump.sh -db aloes_test -c aloes-docker_mongo_1 -u aloes --password example
chmod a+x ./config/mongo/mongorestore.sh
./config/mongo/mongorestore.sh -d aloes_test -db aloes_test -c aloes-docker_mongo_1 -u aloes -p example
chmod a+x ./config/influx/influxdump.sh
./config/influx/influxdump.sh -db aloes_test -c aloes-docker_influxdb_1 -u aloes --password example
chmod a+x ./config/influx/influxrestore.sh
./config/influx/influxrestore.sh -d aloes_test -db aloes_test -c aloes-docker_influxdb_1 -u aloes -p example
chmod a+x ./config/redis/redisdump.sh
./config/redis/redisdump.sh -c aloes-docker_redis_1 -d /data
chmod a+x ./config/redis/redisrestore.sh
./config/redis/redisrestore.sh -s ./dump.rdb -c aloes-docker_redis_1 -d /data -p example
docker-compose config
docker-compose -f docker-compose.yml config
or using helper :
./test-conf.sh
./test-conf.sh -e production
docker-compose --compatibility build
docker-compose --compatibility -f docker-compose.yml build
docker-compose -f docker-compose.yml build <service_name>
docker-compose -f docker-compose.yml --no-deps --build <service_name> up
or using helper :
./aloes.sh --command build
./aloes.sh -c build --env production
./aloes.sh -c build -e local --service <service_name>
docker-compose --compatibility up
docker-compose --compatibility up -d
docker-compose --compatibility -f docker-compose.yml up -d
or using helper :
./aloes.sh -c start
./aloes.sh -c start -e production
./aloes.sh -c start -e local -s <service_name>
docker-compose --compatibility down
docker-compose -f docker-compose.yml down
or using helper :
./aloes.sh -c stop
./aloes.sh -c stop -e production
./aloes.sh -c stop -e local -s <service_name>
docker-compose --compatibility logs --follow --tail="100"
docker-compose --compatibility -f docker-compose.yml logs --follow --tail="100"
or using helper :
./aloes.sh -c log
./aloes.sh -c log -e production
./aloes.sh -c log -e local -s proxy
On Mac OS in order to use envsubst, one step is required :
brew install gettext
brew link --force gettext
-
Replicate Mongo and Redis servers
-
Use docker swarm to deploy on several machines
-
Use aloes.sh to configure dynamically docker-compose services ?