Skip to content

Commit bf269a9

Browse files
authored
feat: docker yml (#268)
* doppler yml * docker yml
1 parent b5f4402 commit bf269a9

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

backend/Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ENV_FILE := config/.env
66
LOAD_ENV := doppler run --
77
LLM_URL := http://127.0.0.1:11434
88

9-
.PHONY: all build run dev test format tidy download clean docker-build docker-run \
9+
.PHONY: all build run dev test format tidy download clean docker-build docker-run docker-up docker-down \
1010
migrate-new migrate-up migrate-down migrate-status migrate-reset db-start db-stop db-reset swagger swagger-fmt docker-build docker-run llm-start genkit-run seed cli
1111

1212
all: build
@@ -83,6 +83,12 @@ docker-run:
8383
--name $(APP_NAME)-container \
8484
$(DOCKER_IMAGE_NAME)
8585

86+
docker-up:
87+
docker compose up --build
88+
89+
docker-down:
90+
docker compose down
91+
8692
# =============================================================================
8793
# Supabase Migrations
8894
# =============================================================================

backend/docker-compose.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
services:
2+
api:
3+
build: .
4+
ports:
5+
- "${PORT:-8080}:8080"
6+
env_file:
7+
- config/.env
8+
depends_on:
9+
- opensearch
10+
restart: unless-stopped
11+
12+
opensearch:
13+
image: opensearchproject/opensearch:latest
14+
environment:
15+
- discovery.type=single-node
16+
- DISABLE_SECURITY_PLUGIN=true
17+
ports:
18+
- "9200:9200"
19+
- "9600:9600"
20+
restart: unless-stopped

0 commit comments

Comments
 (0)