From 0c29273ed7c2b90fa888126000ee24b0949beacb Mon Sep 17 00:00:00 2001 From: nune Date: Thu, 19 Dec 2024 22:07:45 +0000 Subject: [PATCH] Add iceshrimpnet/compose.yml --- iceshrimpnet/compose.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 iceshrimpnet/compose.yml diff --git a/iceshrimpnet/compose.yml b/iceshrimpnet/compose.yml new file mode 100644 index 0000000..98b90b6 --- /dev/null +++ b/iceshrimpnet/compose.yml @@ -0,0 +1,28 @@ +version: "3" + +services: + web: + image: iceshrimp.dev/iceshrimp/iceshrimp.net:dev + container_name: iceshrimp.net_web + restart: unless-stopped + depends_on: + - db + ports: + - "127.0.0.1:3000:3000" + environment: + - ICESHRIMP_CONFIG_OVERRIDES=/app/config/configuration.ini + volumes: + - ./data/media:/data/media + - ./config:/app/config:ro # This must be a directory for hot reload to work + + db: + restart: unless-stopped + image: postgres:16-alpine + container_name: iceshrimp.net_db + shm_size: 256MB # Must be larger than the postgres shared_buffers setting (which defaults to 143MB) + environment: + - POSTGRES_DB=iceshrimp + - POSTGRES_USER=iceshrimp + - POSTGRES_PASSWORD= + volumes: + - ./data/db:/var/lib/postgresql/data \ No newline at end of file