Repo URL: https://github.com/dauden/local-dev
Clone code from repo.
Run shell script and select your options to deply service in your local with docker stack.
$ sh ./setup.sh
If you got error with docker swarm init
please try init swarm first.
$ docker swarm init
then try again with command
$ docker stack deploy -c ./stack-mysql.yml [your_stack_name]
$ #Eg: docker stack deploy -c ./stack-mysql.yml LOCAL_DEV
$ export $(cat .env.local_dev) > /dev/null 2>&1; docker stack deploy -c ./local-stack.yml [your_stack_name]
$ #Eg: export $(cat .env.local_dev) > /dev/null 2>&1; docker stack deploy -c ./local-stack.yml LOCAL_DEV
DONE:
Hasura work on port: 8083, at http://localhost:8083
PGAdmin4 work on port: 8081, at http://localhost:8081
Redis work on port: 6379
Postgres work on port: 5432