-
-
Notifications
You must be signed in to change notification settings - Fork 177
Expand file tree
/
Copy pathdocker-compose.postgres.yml
More file actions
25 lines (25 loc) · 832 Bytes
/
docker-compose.postgres.yml
File metadata and controls
25 lines (25 loc) · 832 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
services:
postgres:
image: postgres:18.0
command: postgres -c io_method=io_uring
restart: unless-stopped
security_opt:
# Disable seccomp to allow io_uring syscalls (io_uring_setup, io_uring_enter, io_uring_register)
# which are blocked by Docker's default seccomp profile for security reasons.
- seccomp=unconfined
healthcheck:
start_period: 90s
interval: 5s
timeout: 5s
retries: 5
test: ["CMD-SHELL", "pg_isready -U ${SHELLHUB_POSTGRES_USERNAME} -d ${SHELLHUB_POSTGRES_DATABASE}"]
environment:
- POSTGRES_USER=${SHELLHUB_POSTGRES_USERNAME}
- POSTGRES_PASSWORD=${SHELLHUB_POSTGRES_PASSWORD}
- POSTGRES_DB=${SHELLHUB_POSTGRES_DATABASE}
networks:
- shellhub
api:
depends_on:
postgres:
condition: service_healthy