From 0a0e0d082f778fca86ab73313c130ef92b5f840d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 5 Jan 2021 09:52:14 +0100 Subject: Fix docker nginx container if peertube restarts --- support/docker/production/docker-compose.yml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'support/docker') diff --git a/support/docker/production/docker-compose.yml b/support/docker/production/docker-compose.yml index 4ad1a8756..e23f31c39 100644 --- a/support/docker/production/docker-compose.yml +++ b/support/docker/production/docker-compose.yml @@ -46,6 +46,11 @@ services: # context: . # dockerfile: ./support/docker/production/Dockerfile.buster image: chocobozzz/peertube:production-buster + # Use a static IP for this container because nginx does not handle proxy host change without reload + # This container could be restarted on crash or until the postgresql database is ready for connection + networks: + default: + ipv4_address: 172.18.0.42 env_file: - .env # If you provide your own webserver and reverse-proxy, otherwise not suitable for production: -- cgit v1.2.3