-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (36 loc) · 922 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (36 loc) · 922 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
services:
db:
image: postgres:18-trixie
restart: unless-stopped
shm_size: 128mb
environment:
POSTGRES_DB: sama
POSTGRES_USER: sama
POSTGRES_PASSWORD: sama-prod-pw
volumes:
- pgroot:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U sama -d sama"]
interval: 10s
timeout: 5s
retries: 5
web:
build:
context: .
args:
VERSION: ${SAMA_VERSION:-0.0.0-dev}
restart: unless-stopped
ports:
- "8080:8080"
environment:
- ConnectionStrings__DefaultConnection=Host=db;Database=sama;Username=sama;Password=sama-prod-pw
- ASPNETCORE_ENVIRONMENT=Production
# - Encryption__Key=${SAMA_ENCRYPTION_KEY} # Optional: Override auto-generated encryption key
volumes:
- samakeys:/app/keys
depends_on:
db:
condition: service_healthy
volumes:
pgroot:
samakeys: