Skip to content

Commit

Permalink
Merge pull request #368 from redge76/Sample_postgreSQL
Browse files Browse the repository at this point in the history
Sample postgreSQL configuration
  • Loading branch information
hargata authored Mar 5, 2024
2 parents 8755c63 + d05f8b1 commit 48c388d
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ MailConfig__UseSSL="false"
MailConfig__Port=587
MailConfig__Username=""
MailConfig__Password=""
LOGGING__LOGLEVEL__DEFAULT=Error
LOGGING__LOGLEVEL__DEFAULT=Error

# * Uncoment this line if you use postgresSQL as database backend.
# * Check the docker-compose.postgresql.yml file
#POSTGRES_CONNECTION="Host=postgres;Username=lubelogger;Password=lubepass;Database=lubelogger;"
45 changes: 45 additions & 0 deletions docker-compose.postgresql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
version: "3.4"

services:
app:
image: ghcr.io/hargata/lubelogger:latest
build: .
restart: unless-stopped
# volumes used to keep data persistent
volumes:
- config:/App/config
- data:/App/data
- translations:/App/wwwroot/translations
- documents:/App/wwwroot/documents
- images:/App/wwwroot/images
- temp:/App/wwwroot/temp
- log:/App/log
- keys:/root/.aspnet/DataProtection-Keys
# expose port and/or use serving via traefik
ports:
- 8080:8080
env_file:
- .env

postgres:
image: postgres:14
restart: unless-stopped
environment:
POSTGRES_USER: "lubelogger"
POSTGRES_PASSWORD: "lubepass"
POSTGRES_DB: "lubelogger"
volumes:
- postgres:/var/lib/postgresql/data
- /etc/localtime:/etc/localtime:ro

volumes:
config:
data:
translations:
documents:
images:
temp:
log:
keys:
postgres:

0 comments on commit 48c388d

Please sign in to comment.