Giter Site home page Giter Site logo

Comments (9)

thechitowncubs avatar thechitowncubs commented on May 19, 2024 5

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.

from awx.

hendrul avatar hendrul commented on May 19, 2024 4

docker-compose -f ~/.awx/awxcompose/docker-compose.yml stop

from awx.

mkempster22 avatar mkempster22 commented on May 19, 2024 1

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

from awx.

HoffiMuc avatar HoffiMuc commented on May 19, 2024 1

just having a look in the Makefile under target docker-compose: I'd say:

# source from Makefile: (but without '-' in docker-compose
# create containers from image
docker compose -f tools/docker-compose/_sources/docker-compose.yml up --detach

# stop containers
docker compose -f tools/docker-compose/_sources/docker-compose.yml stop
# start containers
docker compose -f tools/docker-compose/_sources/docker-compose.yml start

from awx.

matburt avatar matburt commented on May 19, 2024

https://docs.docker.com/engine/reference/commandline/stop/

from awx.

viktorsmari avatar viktorsmari commented on May 19, 2024

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

from awx.

matburt avatar matburt commented on May 19, 2024

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.

from awx.

cfuentea avatar cfuentea commented on May 19, 2024

hi @matburt , if i stop all my containers i will lose all the servers and templates saved?

from awx.

J00MZ avatar J00MZ commented on May 19, 2024

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

from awx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.