diff options
Diffstat (limited to 'compose.yaml')
| -rw-r--r-- | compose.yaml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 0000000..ceaa5fc --- /dev/null +++ b/compose.yaml @@ -0,0 +1,29 @@ +name: sellershut + +services: + db: + image: docker.io/postgres:18.3-alpine + restart: always + shm_size: 128mb + environment: + POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-password} + POSTGRES_DB: sellershut + PGDATA: /data/postgres + ports: + - 5432:5432 + networks: + - sellershut + volumes: + - db:/data/postgres + healthcheck: + test: ["CMD-SHELL", "pg_isready -U postgres"] + interval: 10s + timeout: 5s + retries: 3 + +volumes: + db: + driver: local + +networks: + sellershut: |
