aboutsummaryrefslogtreecommitdiffstats
path: root/compose.yaml
blob: 1e5fcb5c44a4ce544efba66466e05e86c74a2647 (plain)
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
name: warden

services:
  db:
    image: docker.io/postgres:18.3-alpine
    restart: always
    shm_size: 128mb
    environment:
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-password}
      POSTGRES_DB: warden
      PGDATA: /data/postgres
    ports:
      - 5432:5432
    networks:
      - warden
    volumes:
      - db:/data/postgres
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U postgres"]
      interval: 10s
      timeout: 5s
      retries: 3

volumes:
  db:
    driver: local

networks:
  warden: