Skip to content

Commit

Permalink
fix: update docker-compose.yaml to specify image, build target, and p…
Browse files Browse the repository at this point in the history
…latform for rust-app service
  • Loading branch information
lmcdonough committed Nov 22, 2024
1 parent 12c4b97 commit a708624
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ services:

# Rust application that connects to either local or remote PostgreSQL
rust-app:
image: rust-backend # Use the built image
build:
context: . # Build context is current directory
dockerfile: Dockerfile # Use specified Dockerfile
target: runtime # Use runtime target
platform: linux/arm64 # Specify the platform
container_name: rust-app # Name the container "rust-app"
environment:
POSTGRES_USER: ${POSTGRES_USER} # Set PostgreSQL user from environment variable
Expand Down

0 comments on commit a708624

Please sign in to comment.