[Postgre] Make use of labels for monitoring + bump to last minor version
This commit is contained in:
parent
55f7548231
commit
feff23c679
@ -33,13 +33,15 @@ services:
|
||||
- "traefik.http.routers.gitea.rule=Host(`${CN}`)"
|
||||
|
||||
db:
|
||||
image: postgres:13.5
|
||||
image: postgres:13.11-alpine
|
||||
env_file: ./secrets/db.secrets
|
||||
restart: unless-stopped
|
||||
command: ["postgres", "-c", "log_statement=all", "-c", "logging_collector=on"]
|
||||
volumes:
|
||||
- ${DATA_PATH}/db/data:/var/lib/postgresql/data
|
||||
- ${DATA_PATH}/db/.pgpass:/root/.pgpass
|
||||
labels:
|
||||
- "co.elastic.logs/module=postgresql"
|
||||
- "co.elastic.logs/fileset=log"
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
|
@ -43,6 +43,9 @@ services:
|
||||
volumes:
|
||||
- ${DATA_PATH}/db/data:/var/lib/postgresql/data
|
||||
- ${DATA_PATH}/db/.pgpass:/root/.pgpass
|
||||
labels:
|
||||
- "co.elastic.logs/module=postgresql"
|
||||
- "co.elastic.logs/fileset=log"
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
|
@ -2,13 +2,16 @@ version: "3.8"
|
||||
|
||||
services:
|
||||
db:
|
||||
image: postgres:12.9-alpine
|
||||
image: postgres:12.15-alpine
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ${DATA_PATH}/db/var/lib/postgresql/data:/var/lib/postgresql/data
|
||||
- ${DATA_PATH}/db/.pgpass:/root/.pgpass
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
env_file: secrets/db.secrets
|
||||
labels:
|
||||
- "co.elastic.logs/module=postgresql"
|
||||
- "co.elastic.logs/fileset=log"
|
||||
|
||||
app:
|
||||
image: mm_app:7.9.1
|
||||
|
Loading…
Reference in New Issue
Block a user