forked from peterldowns/pgtestdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
33 lines (32 loc) · 894 Bytes
/
docker-compose.yml
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
version: "3.6"
services:
testdb:
# We're using postgis so that we can test the creation of the postgis
# extension, which requires superuser extensions.
#
# To use the equivalent in plain postgres, use `postgres:15`
image: postgis/postgis:15-master
environment:
POSTGRES_PASSWORD: password
restart: unless-stopped
volumes:
# Uses a tmpfs volume to make tests extremely fast. The data in test
# databases is not persisted across restarts, nor does it need to be.
- type: tmpfs
target: /var/lib/postgresql/data/
command:
- "postgres"
- "-c"
- "fsync=off"
- "-c"
- "shared_buffers=1024MB"
- "-c"
- "synchronous_commit=off"
- "-c"
- "full_page_writes=off"
- "-c"
- "log_statement=all"
- "-c"
- "max_connections=1000"
ports:
- "5433:5432"