You start the containers with:
ansible-playbook -i inventory install.yml
How do you stop them?
All containers should be stopped.
So @matburt, is this the only way to stop it:
docker stop awx_task awx_web memcached rabbitmq postgres
?
I was hoping for something easier like
docker-compose up
docker-compose down
If you use the development environment then you have more options for stopping. For the production container, it's deployed to run under the docker daemon on your server and there are multiple ways to manage running containers in that situation.
Managing production services is up to the user and out of the scope of the AWX project.
hi @matburt , if i stop all my containers i will lose all the servers and templates saved?
You wont lose data when stopping or removing the containers as the data from the postgres db container is stored in the location you specified in the inventory file (postgres_data_dir=/path/to/dir)
If you delete that folder you will lose all your data, also note that I think the default directory is still in /tmp for some reason so that may get wiped when rebooting if you have /tmp setup to do that
So @matburt, is this the only way to stop it:
docker stop awx_task awx_web memcached rabbitmq postgres
?I was hoping for something easier like
docker-compose up
docker-compose down
You can goto /tmp/awxcompose and docker-compose down from there.
docker stop awx_task awx_web memcached rabbitmq postgres
minor correction for those running with default docker-compose setup:
sudo docker stop awx_task awx_web awx_memcached awx_rabbitmq awx_postgres
docker-compose -f ~/.awx/awxcompose/docker-compose.yml stop
Most helpful comment
You can goto /tmp/awxcompose and docker-compose down from there.