From ecaaf437f0ea94d29ab8d68136301743f5270850 Mon Sep 17 00:00:00 2001 From: bagas Date: Tue, 24 Feb 2026 09:17:06 +0700 Subject: [PATCH] feat: add docker compose file --- .dockerignore | 3 ++- docker-compose.yaml | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 docker-compose.yaml diff --git a/.dockerignore b/.dockerignore index 9b8d514..52098b4 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,4 +1,5 @@ .react-router build node_modules -README.md \ No newline at end of file +README.md +.env \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..6332018 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,35 @@ +version: "3" + +services: + be: + image: git.fossy.my.id/bagas/ristek-task-be:latest + restart: always + environment: + DATABASE_URL: postgresql://user:password@postgres:5432/ristek?sslmode=disable + ports: + - "8080:8080" + + fe: + build: + context: . + args: + VITE_API_BASE_URL: http://localhost:8080 + restart: always + ports: + - "3000:3000" + + postgres: + image: postgres:17 + container_name: postgres + restart: always + environment: + POSTGRES_USER: user + POSTGRES_PASSWORD: password + POSTGRES_DB: ristek + volumes: + - postgres_data:/var/lib/postgresql/data + ports: + - 5432:5432 + +volumes: + postgres_data: \ No newline at end of file