aboutsummaryrefslogtreecommitdiffstats
path: root/compose.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'compose.yaml')
-rw-r--r--compose.yaml41
1 files changed, 41 insertions, 0 deletions
diff --git a/compose.yaml b/compose.yaml
new file mode 100644
index 0000000..bcacb19
--- /dev/null
+++ b/compose.yaml
@@ -0,0 +1,41 @@
+name: sellershut
+
+services:
+ db:
+ image: docker.io/postgres:18.1-alpine
+ restart: always
+ shm_size: 128mb
+ environment:
+ POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-password}
+ 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
+
+ cache:
+ image: docker.io/valkey/valkey:9.0.1-alpine
+ restart: always
+ ports:
+ - 6379:6379
+ networks:
+ - sellershut
+ healthcheck:
+ test: ["CMD-SHELL", "valkey-cli ping"]
+ interval: 10s
+ timeout: 5s
+ retries: 3
+
+volumes:
+ db:
+ driver: local
+
+networks:
+ sellershut: