Files
ristek-task-fe/docker-compose.yaml
bagas ecaaf437f0
Docker Build and Push / build-and-push (push) Successful in 7m50s
feat: add docker compose file
2026-02-24 09:17:06 +07:00

35 lines
694 B
YAML

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: