Changement 'docker compose'
This commit is contained in:
parent
525933f50c
commit
22140ee9f7
1 changed files with 7 additions and 7 deletions
|
@ -18,11 +18,11 @@
|
|||
|
||||
- name: docker-compose-gen-secrets
|
||||
shell: |
|
||||
docker-compose down
|
||||
docker compose down
|
||||
echo "Placer les valeurs suivantes dans les variables du playbook mastodon :"
|
||||
echo SECRET_KEY_BASE=$(docker-compose run --rm web bundle exec rake secret)
|
||||
echo OTP_SECRET=$(docker-compose run --rm web bundle exec rake secret)
|
||||
docker-compose run --rm web bundle exec rake mastodon:webpush:generate_vapid_key
|
||||
docker compose run --rm web bundle exec rake mastodon:webpush:generate_vapid_key
|
||||
args:
|
||||
chdir: /opt/{{ docker_mastodon_service_id }}/
|
||||
register: secrets
|
||||
|
@ -38,16 +38,16 @@
|
|||
### initialize-data
|
||||
- name: docker-compose-initialize-data
|
||||
shell: |
|
||||
docker-compose down
|
||||
docker-compose run --rm web rails db:migrate
|
||||
docker-compose run --rm web rails assets:precompile
|
||||
docker-compose down
|
||||
docker compose down
|
||||
docker compose run --rm web rails db:migrate
|
||||
docker compose run --rm web rails assets:precompile
|
||||
docker compose down
|
||||
args:
|
||||
chdir: /opt/{{ docker_mastodon_service_id }}/
|
||||
when: docker_mastodon_initialize_data is true
|
||||
|
||||
- name: docker-compose-up
|
||||
shell: |
|
||||
docker-compose up -d
|
||||
docker compose up -d
|
||||
args:
|
||||
chdir: /opt/{{ docker_mastodon_service_id }}/
|
||||
|
|
Loading…
Reference in a new issue