mirror of
https://github.com/hargata/lubelog.git
synced 2026-02-03 17:53:02 -06:00
Clean up pgsql docker compose
This commit is contained in:
parent
1cdfbce0fa
commit
9ce2170a15
@ -1,9 +1,22 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
postgres:
|
||||||
|
image: postgres:18
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: "lubelogger"
|
||||||
|
POSTGRES_PASSWORD: "lubepass"
|
||||||
|
POSTGRES_DB: "lubelogger"
|
||||||
|
volumes:
|
||||||
|
- postgres:/var/lib/postgresql/
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
|
||||||
app:
|
app:
|
||||||
image: ghcr.io/hargata/lubelogger:latest
|
image: ghcr.io/hargata/lubelogger:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
POSTGRES_CONNECTION: "Host=postgres:5432;Username=lubelogger;Password=lubepass;Database=lubelogger;"
|
||||||
# volumes used to keep data persistent
|
# volumes used to keep data persistent
|
||||||
volumes:
|
volumes:
|
||||||
- data:/App/data
|
- data:/App/data
|
||||||
@ -12,18 +25,6 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 8080:8080
|
- 8080:8080
|
||||||
|
|
||||||
postgres:
|
|
||||||
image: postgres:14
|
|
||||||
restart: unless-stopped
|
|
||||||
environment:
|
|
||||||
POSTGRES_USER: "lubelogger"
|
|
||||||
POSTGRES_PASSWORD: "lubepass"
|
|
||||||
POSTGRES_DB: "lubelogger"
|
|
||||||
volumes:
|
|
||||||
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
|
|
||||||
- postgres:/var/lib/postgresql/data
|
|
||||||
- /etc/localtime:/etc/localtime:ro
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
data:
|
data:
|
||||||
keys:
|
keys:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user