- Updated docker-compose.yml to use context and dockerfile for the app service, and removed unnecessary db service configuration. - Modified Dockerfile to use the official Rust nightly image and streamlined the build process with updated working directories and runtime dependencies. - Changed API description in root handler to reflect the correct endpoint for fetching the current hospital.
14 lines
245 B
YAML
14 lines
245 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
app:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
- HOST=${HOST}
|
|
- PORT=${PORT}
|
|
- DATABASE_URL=${DATABASE_URL}
|
|
restart: unless-stopped |