From 19c25138f88acf19c9a959a58de4f58e54026ebc Mon Sep 17 00:00:00 2001 From: rtkay123 Date: Sat, 4 Apr 2026 10:51:18 +0200 Subject: feat: connect to db --- compose.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 compose.yaml (limited to 'compose.yaml') 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: -- cgit v1.2.3