set network driver to bridge

This commit is contained in:
Antonio J. Delgado 2023-07-07 12:24:58 +03:00
parent b4c4ea1cfd
commit e27a951f22

View file

@ -64,10 +64,10 @@ services:
{% endif %} {% endif %}
website: website:
image: tootsuite/mastodon:latest image: tootsuite/mastodon:latest
env_file: env_file:
- env.production - env.production
command: bash -c "bundle exec rails s -p 3000" command: bash -c "bundle exec rails s -p 3000"
restart: always restart: always
depends_on: depends_on:
- postgresql - postgresql
# - pgbouncer # - pgbouncer
@ -86,9 +86,9 @@ services:
shell: shell:
image: tootsuite/mastodon:latest image: tootsuite/mastodon:latest
env_file: env_file:
- env.production - env.production
command: /bin/bash command: /bin/bash
restart: "no" restart: "no"
networks: networks:
- internal_network - internal_network
@ -98,7 +98,7 @@ services:
streaming: streaming:
image: tootsuite/mastodon:latest image: tootsuite/mastodon:latest
env_file: env_file:
- env.production - env.production
command: node ./streaming command: node ./streaming
restart: always restart: always
@ -118,7 +118,7 @@ services:
sidekiq: sidekiq:
image: tootsuite/mastodon:latest image: tootsuite/mastodon:latest
env_file: env_file:
- env.production - env.production
command: bundle exec sidekiq command: bundle exec sidekiq
restart: always restart: always
@ -138,6 +138,7 @@ services:
networks: networks:
external_network: external_network:
driver: bridge
internal_network: internal_network:
internal: true internal: true
@ -146,12 +147,12 @@ volumes:
driver_opts: driver_opts:
type: none type: none
device: {{ mastodon_composer_folder }}/database/postgresql device: {{ mastodon_composer_folder }}/database/postgresql
o: bind o: bind
redis: redis:
driver_opts: driver_opts:
type: none type: none
device: {{ mastodon_composer_folder }}/database/redis device: {{ mastodon_composer_folder }}/database/redis
o: bind o: bind
{% if es_enabled %} elasticsearch: {% if es_enabled %} elasticsearch:
driver_opts: driver_opts:
type: none type: none
@ -161,4 +162,4 @@ volumes:
driver_opts: driver_opts:
type: none type: none
device: {{ mastodon_composer_folder }}/web/system device: {{ mastodon_composer_folder }}/web/system
o: bind o: bind