Skip to content

Commit

Permalink
ci/cd configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
TimofeyTst committed Oct 6, 2023
1 parent 31d9852 commit e810cba
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
version: '3.7'

services:
auth_api:
container_name: auth_api
image: auth_api
rest_api:
container_name: rest_api
image: rest_api
env_file:
- .env
build:
Expand All @@ -23,11 +23,11 @@ services:
image: library/postgres:14.1

environment:
- POSTGRES_USER=auth
- POSTGRES_PASSWORD=auth
- POSTGRES_DB=auth
- POSTGRES_USER=rest
- POSTGRES_PASSWORD=rest
- POSTGRES_DB=rest
volumes:
- app_pg_data:/var/lib/postgresql/data
- eat_place_pg_data:/var/lib/postgresql/data
ports:
- "5432:5432"

Expand All @@ -48,4 +48,4 @@ volumes:
networks:
default:
external: true
name: auth_main
name: eat_place
2 changes: 1 addition & 1 deletion src/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def validate_sentry_non_local(cls, value: str, info: FieldValidationInfo):

app_configs: dict[str, Any] = {"title": "Auth API"}
if settings.ENVIRONMENT.is_deployed:
app_configs["root_path"] = f"/v{settings.APP_VERSION}"
app_configs["root_path"] = f"api/v{settings.APP_VERSION}"

if not settings.ENVIRONMENT.is_debug:
app_configs["openapi_url"] = None # hide docs

0 comments on commit e810cba

Please sign in to comment.