In writing a playbook to bring up sentry according to its docs with docker-compose, I ended up with a task list including:
|
|
command: |
|
docker-compose run --rm web upgrade --noinput |
|
chdir=/opt/sentry-onpremise |
|
|
|
command: |
|
docker-compose run --rm web createuser |
|
–email nobody@example.com |
|
–password supersecretpassword |
|
–superuser |
|
chdir=/opt/sentry-onpremise |
|
|
|
docker_service: |
|
project_src: /opt/sentry-onpremise |
|
state: present |
For reference, the docker compose file I’m using is at https://github.com/refinery29/sentry-onpremise/blob/master/docker-compose.yml (forked from the original).