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
|
- name: docker-compose-gen-secrets
|
||||||
shell: |
|
shell: |
|
||||||
docker-compose down
|
docker compose down
|
||||||
echo "Placer les valeurs suivantes dans les variables du playbook mastodon :"
|
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 SECRET_KEY_BASE=$(docker-compose run --rm web bundle exec rake secret)
|
||||||
echo OTP_SECRET=$(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:
|
args:
|
||||||
chdir: /opt/{{ docker_mastodon_service_id }}/
|
chdir: /opt/{{ docker_mastodon_service_id }}/
|
||||||
register: secrets
|
register: secrets
|
||||||
|
@ -38,16 +38,16 @@
|
||||||
### initialize-data
|
### initialize-data
|
||||||
- name: docker-compose-initialize-data
|
- name: docker-compose-initialize-data
|
||||||
shell: |
|
shell: |
|
||||||
docker-compose down
|
docker compose down
|
||||||
docker-compose run --rm web rails db:migrate
|
docker compose run --rm web rails db:migrate
|
||||||
docker-compose run --rm web rails assets:precompile
|
docker compose run --rm web rails assets:precompile
|
||||||
docker-compose down
|
docker compose down
|
||||||
args:
|
args:
|
||||||
chdir: /opt/{{ docker_mastodon_service_id }}/
|
chdir: /opt/{{ docker_mastodon_service_id }}/
|
||||||
when: docker_mastodon_initialize_data is true
|
when: docker_mastodon_initialize_data is true
|
||||||
|
|
||||||
- name: docker-compose-up
|
- name: docker-compose-up
|
||||||
shell: |
|
shell: |
|
||||||
docker-compose up -d
|
docker compose up -d
|
||||||
args:
|
args:
|
||||||
chdir: /opt/{{ docker_mastodon_service_id }}/
|
chdir: /opt/{{ docker_mastodon_service_id }}/
|
||||||
|
|
Loading…
Reference in a new issue