From f97c56fd79703212354d8dbbb6a7e6ca438e78a3 Mon Sep 17 00:00:00 2001 From: Kim Gustyr Date: Tue, 10 Dec 2024 12:56:41 +0000 Subject: [PATCH] fix: Restore `make docker-up` (#4907) --- api/Makefile | 2 +- docker/api/docker-compose.local.yml | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 docker/api/docker-compose.local.yml diff --git a/api/Makefile b/api/Makefile index f9308c59d9a9..8707e2334026 100644 --- a/api/Makefile +++ b/api/Makefile @@ -2,7 +2,7 @@ DOCKER_TAG ?= flagsmith/flagsmith-api:local -COMPOSE_FILE ?= ../docker/db.yml +COMPOSE_FILE ?= ../docker/api/docker-compose.local.yml COMPOSE_PROJECT_NAME ?= flagsmith DOTENV_OVERRIDE_FILE ?= .env diff --git a/docker/api/docker-compose.local.yml b/docker/api/docker-compose.local.yml new file mode 100644 index 000000000000..2727007c877c --- /dev/null +++ b/docker/api/docker-compose.local.yml @@ -0,0 +1,19 @@ +# A Compose file with minimal dependencies to be able to run Flagsmith, including its test suite, locally (not in Docker). + +name: flagsmith + +volumes: + pg_11_data: + +services: + db: + image: postgres:15.5-alpine + pull_policy: always + restart: unless-stopped + volumes: + - pg_11_data:/var/lib/postgresql/data + ports: + - 5432:5432 + environment: + POSTGRES_DB: flagsmith + POSTGRES_PASSWORD: password