first commit

This commit is contained in:
2025-11-26 07:12:51 +00:00
commit 3e43db51d3
7 changed files with 98 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
# docker-compose.yml
version: '3.8'
services:
# Service untuk aplikasi Node.js
app:
container_name: express-test
# Build image dari Dockerfile di direktori saat ini
build:
context: .
dockerfile: Dockerfile
# Port mapping: <port-host>:<port-container>
ports:
- "4000:4000"
# Variabel lingkungan yang dibutuhkan oleh aplikasi
environment:
- PORT=4000
- DB_HOST=database
- DB_PORT=5432
- DB_USER=postgres
- DB_PASSWORD=postgres_password
- DB_NAME=tododb
# Restart policy
restart: unless-stopped