forked from rachmadiyanti.annisa.3004/service_antrean
docker
This commit is contained in:
@@ -1,95 +1,19 @@
|
|||||||
services:
|
services:
|
||||||
# # PostgreSQL Database
|
|
||||||
# psql_bp:
|
|
||||||
# image: postgres:15-alpine
|
|
||||||
# restart: unless-stopped
|
|
||||||
# environment:
|
|
||||||
# POSTGRES_USER: stim
|
|
||||||
# POSTGRES_PASSWORD: stim*RS54
|
|
||||||
# POSTGRES_DB: satu_db
|
|
||||||
# ports:
|
|
||||||
# - "5432:5432"
|
|
||||||
# volumes:
|
|
||||||
# - postgres_data:/var/lib/postgresql/data
|
|
||||||
# healthcheck:
|
|
||||||
# test: ["CMD-SHELL", "pg_isready -U stim -d satu_db"]
|
|
||||||
# interval: 10s
|
|
||||||
# timeout: 5s
|
|
||||||
# retries: 5
|
|
||||||
# networks:
|
|
||||||
# - blueprint
|
|
||||||
|
|
||||||
# # MongoDB Database
|
|
||||||
# mongodb:
|
|
||||||
# image: mongo:7-jammy
|
|
||||||
# restart: unless-stopped
|
|
||||||
# environment:
|
|
||||||
# MONGO_INITDB_ROOT_USERNAME: admin
|
|
||||||
# MONGO_INITDB_ROOT_PASSWORD: stim*rs54
|
|
||||||
# ports:
|
|
||||||
# - "27017:27017"
|
|
||||||
# volumes:
|
|
||||||
# - mongodb_data:/data/db
|
|
||||||
# networks:
|
|
||||||
# - blueprint
|
|
||||||
|
|
||||||
# # MySQL Antrian Database
|
|
||||||
# mysql_antrian:
|
|
||||||
# image: mysql:8.0
|
|
||||||
# restart: unless-stopped
|
|
||||||
# environment:
|
|
||||||
# MYSQL_ROOT_PASSWORD: www-data
|
|
||||||
# MYSQL_USER: www-data
|
|
||||||
# MYSQL_PASSWORD: www-data
|
|
||||||
# MYSQL_DATABASE: antrian_rssa
|
|
||||||
# ports:
|
|
||||||
# - "3306:3306"
|
|
||||||
# volumes:
|
|
||||||
# - mysql_antrian_data:/var/lib/mysql
|
|
||||||
# healthcheck:
|
|
||||||
# test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
|
|
||||||
# interval: 10s
|
|
||||||
# timeout: 5s
|
|
||||||
# retries: 5
|
|
||||||
# networks:
|
|
||||||
# - blueprint
|
|
||||||
|
|
||||||
# # MySQL Medical Database
|
|
||||||
# mysql_medical:
|
|
||||||
# image: mysql:8.0
|
|
||||||
# restart: unless-stopped
|
|
||||||
# environment:
|
|
||||||
# MYSQL_ROOT_PASSWORD: meninjar*RS54
|
|
||||||
# MYSQL_USER: meninjardev
|
|
||||||
# MYSQL_PASSWORD: meninjar*RS54
|
|
||||||
# MYSQL_DATABASE: healtcare_database
|
|
||||||
# ports:
|
|
||||||
# - "3307:3306"
|
|
||||||
# volumes:
|
|
||||||
# - mysql_medical_data:/var/lib/mysql
|
|
||||||
# healthcheck:
|
|
||||||
# test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
|
|
||||||
# interval: 10s
|
|
||||||
# timeout: 5s
|
|
||||||
# retries: 5
|
|
||||||
# networks:
|
|
||||||
# - blueprint
|
|
||||||
|
|
||||||
# Main Application
|
|
||||||
app:
|
app:
|
||||||
|
container_name: api-general
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
target: prod
|
target: prod
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "8010:8010"
|
||||||
environment:
|
environment:
|
||||||
# Server Configuration
|
# Server Configuration
|
||||||
APP_ENV: production
|
APP_ENV: production
|
||||||
PORT: 8080
|
PORT: 8010
|
||||||
GIN_MODE: release
|
GIN_MODE: release
|
||||||
|
JWT_SECRET: goRSSA@jay@2025
|
||||||
# Default Database Configuration (PostgreSQL)
|
# Default Database Configuration (PostgreSQL)
|
||||||
DB_CONNECTION: postgres
|
DB_CONNECTION: postgres
|
||||||
DB_USERNAME: stim
|
DB_USERNAME: stim
|
||||||
@@ -142,6 +66,11 @@ services:
|
|||||||
KEYCLOAK_JWKS_URL: https://auth.rssa.top/realms/sandbox/protocol/openid-connect/certs
|
KEYCLOAK_JWKS_URL: https://auth.rssa.top/realms/sandbox/protocol/openid-connect/certs
|
||||||
KEYCLOAK_ENABLED: true
|
KEYCLOAK_ENABLED: true
|
||||||
|
|
||||||
|
# Auth Configuration
|
||||||
|
AUTH_TYPE: hybrid
|
||||||
|
AUTH_STATIC_TOKENS: token5,token6,token7,token8
|
||||||
|
AUTH_FALLBACK_TO: jwt
|
||||||
|
|
||||||
# BPJS Configuration
|
# BPJS Configuration
|
||||||
BPJS_BASEURL: https://apijkn.bpjs-kesehatan.go.id/vclaim-rest
|
BPJS_BASEURL: https://apijkn.bpjs-kesehatan.go.id/vclaim-rest
|
||||||
BPJS_CONSID: 5257
|
BPJS_CONSID: 5257
|
||||||
@@ -172,23 +101,15 @@ services:
|
|||||||
API_DESCRIPTION: Dokumentation SWAGGER
|
API_DESCRIPTION: Dokumentation SWAGGER
|
||||||
API_VERSION: 3.0.0
|
API_VERSION: 3.0.0
|
||||||
|
|
||||||
# depends_on:
|
# Security
|
||||||
# psql_bp:
|
SECURITY_TRUSTED_ORIGINS: http://meninjar.dev.rssa.id:8050,https://yourdomain.com
|
||||||
# condition: service_healthy
|
SECURITY_MAX_INPUT_LENGTH: 500
|
||||||
# mongodb:
|
RATE_LIMIT_REQUESTS_PER_MINUTE: 120
|
||||||
# condition: service_started
|
REDIS_HOST: localhost
|
||||||
# mysql_antrian:
|
REDIS_PORT: 6379
|
||||||
# condition: service_healthy
|
REDIS_PASSWORD: your_redis_password
|
||||||
# mysql_medical:
|
REDIS_DB: 0
|
||||||
# condition: service_healthy
|
|
||||||
networks:
|
networks:
|
||||||
- goservice
|
- goservice
|
||||||
|
|
||||||
# volumes:
|
|
||||||
# postgres_data:
|
|
||||||
# mongodb_data:
|
|
||||||
# mysql_antrian_data:
|
|
||||||
# mysql_medical_data:
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
goservice:
|
goservice:
|
||||||
|
|||||||
Reference in New Issue
Block a user