Stop running containers before upgrading

This commit is contained in:
sonny 2023-03-04 14:24:02 +01:00
parent 986307a73f
commit a12e431d63

View file

@ -34,6 +34,12 @@
- { src: 'templates/sentry.conf.j2', dest: '{{ app_dir }}/sentry/sentry.conf.py' }
- { src: 'templates/sentry.config.j2', dest: '{{ app_dir }}/sentry/config.yml' }
- name: stop running containers
docker_compose:
project_src: '{{ app_dir }}'
env_file: '{{ app_dir }}/.env'
state: absent
# Note: run `docker-compose run --rm web export > backup.json` before upgrading
# TODO: tag other sentry images aswell
# can be ran multiple times to upgrade sentry