set network driver to bridge
This commit is contained in:
parent
b4c4ea1cfd
commit
e27a951f22
1 changed files with 10 additions and 9 deletions
|
@ -64,10 +64,10 @@ services:
|
|||
{% endif %}
|
||||
website:
|
||||
image: tootsuite/mastodon:latest
|
||||
env_file:
|
||||
env_file:
|
||||
- env.production
|
||||
command: bash -c "bundle exec rails s -p 3000"
|
||||
restart: always
|
||||
restart: always
|
||||
depends_on:
|
||||
- postgresql
|
||||
# - pgbouncer
|
||||
|
@ -86,9 +86,9 @@ services:
|
|||
|
||||
shell:
|
||||
image: tootsuite/mastodon:latest
|
||||
env_file:
|
||||
env_file:
|
||||
- env.production
|
||||
command: /bin/bash
|
||||
command: /bin/bash
|
||||
restart: "no"
|
||||
networks:
|
||||
- internal_network
|
||||
|
@ -98,7 +98,7 @@ services:
|
|||
|
||||
streaming:
|
||||
image: tootsuite/mastodon:latest
|
||||
env_file:
|
||||
env_file:
|
||||
- env.production
|
||||
command: node ./streaming
|
||||
restart: always
|
||||
|
@ -118,7 +118,7 @@ services:
|
|||
|
||||
sidekiq:
|
||||
image: tootsuite/mastodon:latest
|
||||
env_file:
|
||||
env_file:
|
||||
- env.production
|
||||
command: bundle exec sidekiq
|
||||
restart: always
|
||||
|
@ -138,6 +138,7 @@ services:
|
|||
|
||||
networks:
|
||||
external_network:
|
||||
driver: bridge
|
||||
internal_network:
|
||||
internal: true
|
||||
|
||||
|
@ -146,12 +147,12 @@ volumes:
|
|||
driver_opts:
|
||||
type: none
|
||||
device: {{ mastodon_composer_folder }}/database/postgresql
|
||||
o: bind
|
||||
o: bind
|
||||
redis:
|
||||
driver_opts:
|
||||
type: none
|
||||
device: {{ mastodon_composer_folder }}/database/redis
|
||||
o: bind
|
||||
o: bind
|
||||
{% if es_enabled %} elasticsearch:
|
||||
driver_opts:
|
||||
type: none
|
||||
|
@ -161,4 +162,4 @@ volumes:
|
|||
driver_opts:
|
||||
type: none
|
||||
device: {{ mastodon_composer_folder }}/web/system
|
||||
o: bind
|
||||
o: bind
|
||||
|
|
Loading…
Reference in a new issue