Skip to content

Commit

Permalink
Adding postgres to other Docker configs
Browse files Browse the repository at this point in the history
  • Loading branch information
DarioGii committed Dec 14, 2024
1 parent 090108b commit ff41923
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 2 deletions.
19 changes: 19 additions & 0 deletions exampleYmlFiles/docker-compose-latest-fat-security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ services:
resources:
limits:
memory: 4G
depends_on:
- db
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8080/api/v1/info/status | grep -q 'UP'"]
interval: 5s
Expand All @@ -30,4 +32,21 @@ services:
SYSTEM_MAXFILESIZE: "100"
METRICS_ENABLED: "true"
SYSTEM_GOOGLEVISIBILITY: "true"
SYSTEM_PROFILES_ACTIVE: docker
SYSTEM_DATASOURCE_URL: "jdbc:postgresql://db:5432/stirling_pdf"
SYSTEM_DATASOURCE_USERNAME: "admin"
SYSTEM_DATASOURCE_PASSWORD: "stirling"
SYSTEM_DATASOURCE_DRIVER: "postgresql"
SPRING_JPA_HIBERNATE_DDL_AUTO: "update"
SPRING_JPA_PROPERTIES_HIBERNATE_DIALECT: "org.hibernate.dialect.PostgreSQLDialect"
restart: on-failure:5

db:
image: 'postgres:17.2-alpine'
container_name: db
ports:
- "5432:5432"
environment:
POSTGRES_DB: "stirling_pdf"
POSTGRES_USER: "admin"
POSTGRES_PASSWORD: "stirling"
19 changes: 19 additions & 0 deletions exampleYmlFiles/docker-compose-latest-security-with-sso.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ services:
resources:
limits:
memory: 4G
depends_on:
- db
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8080/api/v1/info/status | grep -q 'UP' && curl -fL http://localhost:8080/ | grep -q 'Please sign in'"]
interval: 5s
Expand Down Expand Up @@ -38,4 +40,21 @@ services:
SYSTEM_MAXFILESIZE: "100"
METRICS_ENABLED: "true"
SYSTEM_GOOGLEVISIBILITY: "true"
SYSTEM_PROFILES_ACTIVE: docker
SYSTEM_DATASOURCE_URL: "jdbc:postgresql://db:5432/stirling_pdf"
SYSTEM_DATASOURCE_USERNAME: "admin"
SYSTEM_DATASOURCE_PASSWORD: "stirling"
SYSTEM_DATASOURCE_DRIVER: "postgresql"
SPRING_JPA_HIBERNATE_DDL_AUTO: "update"
SPRING_JPA_PROPERTIES_HIBERNATE_DIALECT: "org.hibernate.dialect.PostgreSQLDialect"
restart: on-failure:5

db:
image: 'postgres:17.2-alpine'
container_name: db
ports:
- "5432:5432"
environment:
POSTGRES_DB: "stirling_pdf"
POSTGRES_USER: "admin"
POSTGRES_PASSWORD: "stirling"
4 changes: 2 additions & 2 deletions exampleYmlFiles/docker-compose-latest-security.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
services:
stirling-pdf:
container_name: Stirling-PDF-Security
image: stirlingtools/stirling-pdf:test
image: stirlingtools/stirling-pdf:latest
deploy:
resources:
limits:
Expand All @@ -20,7 +20,6 @@ services:
- /stirling/latest/config:/configs:rw
- /stirling/latest/logs:/logs:rw
environment:
SYSTEM_PROFILES_ACTIVE: docker
DOCKER_ENABLE_SECURITY: "true"
SECURITY_ENABLELOGIN: "true"
PUID: 1002
Expand All @@ -33,6 +32,7 @@ services:
SYSTEM_MAXFILESIZE: "100"
METRICS_ENABLED: "true"
SYSTEM_GOOGLEVISIBILITY: "true"
SYSTEM_PROFILES_ACTIVE: docker
SYSTEM_DATASOURCE_URL: "jdbc:postgresql://db:5432/stirling_pdf"
SYSTEM_DATASOURCE_USERNAME: "admin"
SYSTEM_DATASOURCE_PASSWORD: "stirling"
Expand Down
19 changes: 19 additions & 0 deletions exampleYmlFiles/docker-compose-latest-ultra-lite-security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ services:
resources:
limits:
memory: 1G
depends_on:
- db
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8080/api/v1/info/status | grep -q 'UP' && curl -fL http://localhost:8080/ | grep -q 'Please sign in'"]
interval: 5s
Expand All @@ -27,4 +29,21 @@ services:
SYSTEM_MAXFILESIZE: "100"
METRICS_ENABLED: "true"
SYSTEM_GOOGLEVISIBILITY: "true"
SYSTEM_PROFILES_ACTIVE: docker
SYSTEM_DATASOURCE_URL: "jdbc:postgresql://db:5432/stirling_pdf"
SYSTEM_DATASOURCE_USERNAME: "admin"
SYSTEM_DATASOURCE_PASSWORD: "stirling"
SYSTEM_DATASOURCE_DRIVER: "postgresql"
SPRING_JPA_HIBERNATE_DDL_AUTO: "update"
SPRING_JPA_PROPERTIES_HIBERNATE_DIALECT: "org.hibernate.dialect.PostgreSQLDialect"
restart: on-failure:5

db:
image: 'postgres:17.2-alpine'
container_name: db
ports:
- "5432:5432"
environment:
POSTGRES_DB: "stirling_pdf"
POSTGRES_USER: "admin"
POSTGRES_PASSWORD: "stirling"

0 comments on commit ff41923

Please sign in to comment.