Merge pull request #1097 from bcj/bcj/non-standard-ports-main

Allow BookWyrm to run on Non-Standard Ports
This commit is contained in:
Mouse Reeve 2021-05-18 22:35:51 -07:00 committed by GitHub
commit fbed7b8eab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View file

@ -21,6 +21,7 @@ BOOKWYRM_DATABASE_BACKEND=postgres
MEDIA_ROOT=images/ MEDIA_ROOT=images/
POSTGRES_PORT=5432
POSTGRES_PASSWORD=fedireads POSTGRES_PASSWORD=fedireads
POSTGRES_USER=fedireads POSTGRES_USER=fedireads
POSTGRES_DB=fedireads POSTGRES_DB=fedireads

View file

@ -21,6 +21,7 @@ BOOKWYRM_DATABASE_BACKEND=postgres
MEDIA_ROOT=images/ MEDIA_ROOT=images/
POSTGRES_PORT=5432
POSTGRES_PASSWORD=securedbpassword123 POSTGRES_PASSWORD=securedbpassword123
POSTGRES_USER=fedireads POSTGRES_USER=fedireads
POSTGRES_DB=fedireads POSTGRES_DB=fedireads

View file

@ -118,7 +118,7 @@ BOOKWYRM_DBS = {
"USER": env("POSTGRES_USER", "fedireads"), "USER": env("POSTGRES_USER", "fedireads"),
"PASSWORD": env("POSTGRES_PASSWORD", "fedireads"), "PASSWORD": env("POSTGRES_PASSWORD", "fedireads"),
"HOST": env("POSTGRES_HOST", ""), "HOST": env("POSTGRES_HOST", ""),
"PORT": 5432, "PORT": env("POSTGRES_PORT", 5432),
}, },
} }

View file

@ -42,8 +42,6 @@ services:
image: redis image: redis
command: ["redis-server", "--appendonly", "yes"] command: ["redis-server", "--appendonly", "yes"]
env_file: .env env_file: .env
ports:
- 6378:6378
networks: networks:
- main - main
restart: on-failure restart: on-failure
@ -76,7 +74,7 @@ services:
restart: on-failure restart: on-failure
flower: flower:
build: . build: .
command: flower --port=8888 command: flower --port=${FLOWER_PORT}
env_file: .env env_file: .env
environment: environment:
- CELERY_BROKER_URL=${CELERY_BROKER} - CELERY_BROKER_URL=${CELERY_BROKER}