Skip to content
This repository has been archived by the owner on Dec 15, 2024. It is now read-only.

Commit

Permalink
chore: use settings for docker
Browse files Browse the repository at this point in the history
  • Loading branch information
dantetemplar committed Nov 23, 2024
1 parent 37c2eca commit 7333030
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions backend/settings.docker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
$schema: "./settings.schema.yaml"
app_root_path: "/api"
environment: development
database_uri: "mongodb://mongoadmin:secret@db:27017/db?authSource=admin" # Database URL, f.e. "mongodb://mongoadmin:secret@localhost:27017/db?authSource=admin"
session_secret_key: "very-secret-key" # use `openssl rand -hex 32` to generate a random key
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ services:
dockerfile: Dockerfile
restart: always
volumes:
- "./backend/settings.yaml:/code/settings.yaml:ro" # Read-only settings file
- "./backend/settings.docker.yaml:/code/settings.yaml:ro" # Read-only settings file
depends_on:
db:
condition: service_started
Expand Down

0 comments on commit 7333030

Please sign in to comment.