Skip to content

Commit

Permalink
deploy: expose ports in development
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemSBulgakov committed Feb 24, 2024
1 parent 92121da commit 8741024
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker-compose.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ services:
# Pull the image from GitHub Container Registry instead of building locally
image: "ghcr.io/one-zero-eight/innohassle-musicroom:main"
build: !reset null
ports: !reset [] # Do not expose any ports

db:
ports: !reset [] # Do not expose any ports
4 changes: 4 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ services:
# Wait for the database to be ready before starting the application
condition: service_healthy
restart: always
ports:
- "8000:8000"
volumes:
- "./settings.yaml:/code/settings.yaml:ro" # Read-only settings file
env_file: .env # You can specify some Uvicorn settings in .env file
Expand All @@ -31,6 +33,8 @@ services:
command: postgres -c synchronous_commit=off
volumes:
- "postgres:/var/lib/postgresql/data"
ports:
- "5432:5432"
env_file: .env # Set POSTGRES_PASSWORD in .env file
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
Expand Down

0 comments on commit 8741024

Please sign in to comment.