Upgrade PostgreSQL
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
version: '3.6'
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:13
|
||||
container_name: self_postgres
|
||||
volumes:
|
||||
- data_postgres:/var/lib/postgresql/data
|
||||
expose:
|
||||
- 5432
|
||||
networks:
|
||||
internal_traffic:
|
||||
ipv4_address: 192.168.3.41
|
||||
# postgres13:
|
||||
# image: postgres:13
|
||||
# container_name: self_postgres
|
||||
# volumes:
|
||||
# - data_postgres:/var/lib/postgresql/data
|
||||
# expose:
|
||||
# - 5432
|
||||
# networks:
|
||||
# internal_traffic:
|
||||
# ipv4_address: 192.168.3.45
|
||||
|
||||
# deploy:
|
||||
# resources:
|
||||
@@ -17,13 +17,47 @@ services:
|
||||
# cpus: '0.50'
|
||||
# memory: 1024M
|
||||
|
||||
restart: unless-stopped
|
||||
# restart: unless-stopped
|
||||
|
||||
# environment:
|
||||
# - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||
# - POSTGRES_USER=${POSTGRES_USER}
|
||||
# - POSTGRES_DB=${POSTGRES_DATABASE}
|
||||
|
||||
postgres18:
|
||||
image: rgpostgresql-18
|
||||
container_name: self_postgres18
|
||||
|
||||
volumes:
|
||||
- data_postgres18:/var/lib/postgresql
|
||||
- /opt/pg_backup:/var/lib/pgbackrest
|
||||
- ./pgbackrest.conf:/etc/pgbackrest/pgbackrest.conf:ro
|
||||
|
||||
expose:
|
||||
- 5432
|
||||
|
||||
networks:
|
||||
internal_traffic:
|
||||
ipv4_address: 192.168.3.41
|
||||
|
||||
#restart: unless-stopped
|
||||
|
||||
environment:
|
||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||
- POSTGRES_USER=${POSTGRES_USER}
|
||||
- POSTGRES_DB=${POSTGRES_DATABASE}
|
||||
|
||||
command:
|
||||
- "postgres"
|
||||
- "-c"
|
||||
- "archive_mode=on"
|
||||
- "-c"
|
||||
- "archive_command=pgbackrest --stanza=main archive-push %p"
|
||||
- "-c"
|
||||
- "archive_timeout=60s"
|
||||
- "-c"
|
||||
- "wal_level=replica"
|
||||
|
||||
adminer:
|
||||
image: ghcr.io/shyim/adminerevo:latest
|
||||
hostname: self_adminer
|
||||
@@ -42,7 +76,7 @@ services:
|
||||
networks:
|
||||
internal_traffic:
|
||||
ipv4_address: 192.168.3.44
|
||||
restart: unless-stopped
|
||||
#restart: unless-stopped
|
||||
volumes:
|
||||
- data_redis:/data
|
||||
deploy:
|
||||
@@ -58,7 +92,7 @@ services:
|
||||
networks:
|
||||
internal_traffic:
|
||||
ipv4_address: 192.168.3.42
|
||||
restart: unless-stopped
|
||||
#restart: unless-stopped
|
||||
env_file: .env
|
||||
command: --sort_buffer_size=512K
|
||||
volumes:
|
||||
@@ -71,6 +105,8 @@ services:
|
||||
volumes:
|
||||
data_postgres:
|
||||
external: true
|
||||
data_postgres18:
|
||||
external: true
|
||||
data_mysql:
|
||||
external: true
|
||||
data_redis:
|
||||
|
||||
Reference in New Issue
Block a user