-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yaml
More file actions
34 lines (34 loc) · 867 Bytes
/
compose.yaml
File metadata and controls
34 lines (34 loc) · 867 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
# For use with local development only.
# From postgres Docker README: https://github.com/docker-library/docs/blob/master/postgres/README.md#-via-docker-compose
services:
db:
image: postgres:15
restart: always
shm_size: 128mb
ports:
- 5432:5432
volumes:
- type: tmpfs
target: /dev/shm
tmpfs:
size: 134217728 # 128*2^20 bytes = 128Mb
environment:
POSTGRES_PASSWORD: postgres
test-db-ephemeral:
image: postgres:15
restart: always
shm_size: 128mb
ports:
- 5433:5432
volumes:
- type: tmpfs
target: /dev/shm
tmpfs:
size: 134217728 # 128*2^20 bytes = 128Mb
environment:
POSTGRES_PASSWORD: postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d postgres"]
interval: 2s
timeout: 2s
retries: 30