I need help.
I have set up bitwarden, and now comes a 502 error.
Do not see the mistake, have already tried different.
Thanks in advance.
config.yml
#
# Note: After making changes to this file you need to run the rebuild or update
# command for them to be applied.
#
# Full URL for accessing the installation from a browser. (Required)
url: https://host.xyz
#
# Auto-generate the ./docker/docker-compose.yml config file.
# WARNING: Disabling generated config files can break future updates. You will be
# responsible for maintaining this config file.
# Template: server/DockerCompose.hbs at master · bitwarden/server · GitHub
generate_compose_config: true
#
# Auto-generate the ./nginx/default.conf file.
# WARNING: Disabling generated config files can break future updates. You will be
# responsible for maintaining this config file.
# Template: server/NginxConfig.hbs at master · bitwarden/server · GitHub
generate_nginx_config: true
#
# Docker compose file port mapping for HTTP. Leave empty to remove the port mapping.
# Learn more: Compose file specification
http_port: 8000
And here the docker-compose.override.yml file:
docker-compose.override.yml
Do you have deployment guide for how you did this behind the wilder/nginx-proxy configuration? I am using the same container / configuration, with the companion letsencrypt-nginx-proxy container for certification management.
Sorry, could I ask for details of how you solved this, as I have the same issue and configuration?
I cannot see how to provide the additional Environment Variables and custom Network settings to the docker-compose.yml file.
Manual edit? I tried this, then ran ./bitwarden.sh update and it overwrites the manual edits I made.
Or do you just start the containers, without applying the update command first? I expect this means you will forever be required to manually maintain the docker-compose.yml file (not the ideal scenario, as I would like to use the default generated content and merely supply the additional configuration to it)
Ideally, I only hoped to need the bitwarden-nginx container on this network, but it does function like this. I will continue investigating splitting the containers onto separate networks.
8080 is the forwarded port of the nginx container. Bitwarden’s config was set to custom port 8280, which is forwarded to the container.
That ensures only the nginx container is patched through to the jwilder/proxy network. However, as of 9/4/2020 I have found an issue where this ends up with a 502 error. For me the root of the issue is that on the docker-compose.yml file every container had a container_name: bitwarden-[name] setting. I cannot remember if I did that or if that is the way bitwarden is shipping now.
But the nginx default.conf file, defines all upstreams as http://web:5000, http://api:5000, etc. When the stack runs, nginx can’t resolve those names, because the hosts names are now bitwarden-web, bitwarden-api etc… So all I did was update the default.conf to reflect those prefixes, and then did a bitwarden.sh start. My setup is fully working now.