-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdb.yml
More file actions
22 lines (21 loc) · 819 Bytes
/
db.yml
File metadata and controls
22 lines (21 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
services:
jim.database:
container_name: JIM.Database
image: postgres:18.3@sha256:78481659c47e862334611ccdaf7c369c986b3046da9857112f3b309114a65fb4
restart: always
# shm_size must be >= shared_buffers - see docker-compose.yml for sizing guidance
shm_size: '512mb'
# Align max_connections with the full Docker stack (docker-compose.yml) so that
# native development (jim-db + jim-web) and integration tests have the same limits.
command: postgres -c shared_preload_libraries=pg_stat_statements -c pg_stat_statements.track=all -c max_connections=200
volumes:
- jim-db-volume:/var/lib/postgresql
environment:
- POSTGRES_USER=jim
- POSTGRES_PASSWORD=password
- POSTGRES_DB=jim
ports:
- "5432:5432"
volumes:
jim-db-volume:
name: jim-db-volume