-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (43 loc) · 1.03 KB
/
docker-compose.yml
File metadata and controls
45 lines (43 loc) · 1.03 KB
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
39
40
41
42
43
44
45
services:
postgres:
image: postgres:17
restart: unless-stopped
environment:
POSTGRES_USER: pxbin
POSTGRES_PASSWORD: pxbin
POSTGRES_DB: pxbin
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U pxbin"]
interval: 5s
timeout: 5s
retries: 5
pxbin:
build: .
restart: unless-stopped
ports:
- "8080:8080"
environment:
PXBIN_DATABASE_URL: "postgres://pxbin:pxbin@postgres:5432/pxbin?sslmode=disable"
PXBIN_DATABASE_SCHEMA: "public"
PXBIN_MANAGEMENT_BOOTSTRAP_KEY: "${PXBIN_MANAGEMENT_BOOTSTRAP_KEY:?Set PXBIN_MANAGEMENT_BOOTSTRAP_KEY in your environment}"
depends_on:
postgres:
condition: service_healthy
stop_grace_period: 20s
deploy:
resources:
limits:
memory: 512M
reservations:
memory: 128M
logging:
driver: json-file
options:
max-size: "50m"
max-file: "3"
volumes:
pgdata: