Adds NoOAuth Profile

This commit is contained in:
2024-10-30 17:51:18 -03:00
parent 13e77e1906
commit 95fcbef382
2 changed files with 80 additions and 5 deletions

View File

@@ -3,8 +3,7 @@ services:
postgres:
image: postgres:14.13
container_name: postgres
ports:
- "5432:5432"
network_mode: host
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
@@ -15,13 +14,40 @@ services:
redis:
image: bitnami/redis
container_name: redis
network_mode: host
environment:
REDIS_PASSWORD: redis
ports:
- "6379:6379"
volumes:
- redis:/data
minio:
image: bitnami/minio
container_name: minio
environment:
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: minio123
MINIO_DEFAULT_BUCKETS: default
network_mode: host
volumes:
- minio:/bitnami/minio/data
storage_service:
image: yoshiunfriendly/storage-hideyoshi.com:latest
container_name: storage_service
network_mode: host
environment:
REDIS_HOST: 127.0.0.1
REDIS_PORT: 6379
REDIS_PASSWORD: redis
STORAGE_TYPE: s3
AWS_ENDPOINT_URL: http://127.0.0.1:9000
AWS_ACCESS_KEY_ID: minio
AWS_SECRET_ACCESS_KEY: minio123
AWS_REGION_NAME: sa-east-1
AWS_BUCKET_NAME: default
VIRUS_CHECKER_TYPE: none
volumes:
postgres:
redis:
redis:
minio:

View File

@@ -0,0 +1,49 @@
br:
com:
hideyoshi:
frontendPath: ${FRONTEND_PATH}
tokenSecret: ${TOKEN_SECRET}
accessTokenDuration: ${ACCESS_TOKEN_DURATION}
refreshTokenDuration: ${REFRESH_TOKEN_DURATION}
defaultUser:
fullName: ${DEFAULT_USER_FULLNAME}
email: ${DEFAULT_USER_EMAIL}
username: ${DEFAULT_USER_USERNAME}
password: ${DEFAULT_USER_PASSWORD}
microservice:
storageServicePath: ${STORAGE_SERVICE_PATH}
server:
servlet:
session:
cookie:
same-site: none
port: ${PORT}
spring:
datasource:
url: jdbc:${DATABASE_URL}
username: ${DATABASE_USERNAME}
password: ${DATABASE_PASSWORD}
session:
store:
type: redis
persistent: true
redis:
host: ${REDIS_URL}
port: ${REDIS_PORT}
password: ${REDIS_PASSWORD}
jpa:
open-in-view: false
hibernate:
ddl-auto: none
properties:
hibernate:
dialect: org.hibernate.dialect.PostgreSQLDialect
format_sql: true