feat: add docker compose file
Docker Build and Push / build-and-push (push) Successful in 7m50s

This commit is contained in:
2026-02-24 09:17:06 +07:00
parent 631cac2dc3
commit ecaaf437f0
2 changed files with 37 additions and 1 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
.react-router
build
node_modules
README.md
README.md
.env
+35
View File
@@ -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: