Skip to content
Extraits de code Groupes Projets
Valider 75bd141e rédigé par Valentin Ouvrard's avatar Valentin Ouvrard Validation de Eugen Rochko
Parcourir les fichiers

Switch docker-compose to version 3. (#2747)

* Switch docker-compose to version 3.

It allow possibility to Deploy Mastodon in a Swarm cluster directly from the compose file.

* switch to compose v3 without depend.
parent 0cdcf328
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
version: '2' version: '3'
services: services:
db: db:
...@@ -15,13 +15,9 @@ services: ...@@ -15,13 +15,9 @@ services:
# volumes: # volumes:
# - ./redis:/data # - ./redis:/data
app: web:
build: . build: .
image: gargron/mastodon image: gargron/mastodon
web:
extends:
service: app
restart: always restart: always
env_file: .env.production env_file: .env.production
command: bundle exec rails s -p 3000 -b '0.0.0.0' command: bundle exec rails s -p 3000 -b '0.0.0.0'
...@@ -36,8 +32,8 @@ services: ...@@ -36,8 +32,8 @@ services:
- ./public/system:/mastodon/public/system - ./public/system:/mastodon/public/system
streaming: streaming:
extends: build: .
service: app image: gargron/mastodon
restart: always restart: always
env_file: .env.production env_file: .env.production
command: npm run start command: npm run start
...@@ -48,8 +44,8 @@ services: ...@@ -48,8 +44,8 @@ services:
- redis - redis
sidekiq: sidekiq:
extends: build: .
service: app image: gargron/mastodon
restart: always restart: always
env_file: .env.production env_file: .env.production
command: bundle exec sidekiq -q default -q mailers -q pull -q push command: bundle exec sidekiq -q default -q mailers -q pull -q push
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter