From 5869439769abe3c7a97f308744aebdd65dccbff8 Mon Sep 17 00:00:00 2001 From: Aramayis <> Date: Tue, 18 Oct 2022 20:55:25 +0400 Subject: [PATCH] feat: uffizzi integration --- uffizzi/DockerfileDB | 3 ++ uffizzi/docker-compose.uffizzi.yml | 44 ++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 uffizzi/DockerfileDB create mode 100644 uffizzi/docker-compose.uffizzi.yml diff --git a/uffizzi/DockerfileDB b/uffizzi/DockerfileDB new file mode 100644 index 00000000..bcc0de05 --- /dev/null +++ b/uffizzi/DockerfileDB @@ -0,0 +1,3 @@ +FROM postgres:12-alpine + +COPY ./sql/schema.postgresql.sql /docker-entrypoint-initdb.d/schema.postgresql.sql \ No newline at end of file diff --git a/uffizzi/docker-compose.uffizzi.yml b/uffizzi/docker-compose.uffizzi.yml new file mode 100644 index 00000000..f88186cb --- /dev/null +++ b/uffizzi/docker-compose.uffizzi.yml @@ -0,0 +1,44 @@ +version: '3' + +x-uffizzi: + ingress: + service: umami + port: 3000 + continuous_previews: + deploy_preview_when_pull_request_is_opened: true + delete_preview_when_pull_request_is_closed: true + share_to_github: true + +services: + umami: + build: + context: ./ + dockerfile: ./Dockerfile + args: + - DATABASE_TYPE=postgresql + ports: + - "3000:3000" + environment: + DATABASE_URL: postgresql://umami:umami@localhost:5432/umami + DATABASE_TYPE: postgresql + HASH_SALT: replace-me-with-a-random-string + depends_on: + - db + restart: always + deploy: + resources: + limits: + memory: 500M + db: + build: + context: ./ + dockerfile: ./uffizzi/DockerfileDB + environment: + POSTGRES_DB: umami + POSTGRES_USER: umami + POSTGRES_PASSWORD: umami + restart: always + deploy: + resources: + limits: + memory: 500M