Upgrade PostgreSQL
This commit is contained in:
@@ -1,15 +1,15 @@
|
|||||||
version: '3.6'
|
version: '3.6'
|
||||||
services:
|
services:
|
||||||
postgres:
|
# postgres13:
|
||||||
image: postgres:13
|
# image: postgres:13
|
||||||
container_name: self_postgres
|
# container_name: self_postgres
|
||||||
volumes:
|
# volumes:
|
||||||
- data_postgres:/var/lib/postgresql/data
|
# - data_postgres:/var/lib/postgresql/data
|
||||||
expose:
|
# expose:
|
||||||
- 5432
|
# - 5432
|
||||||
networks:
|
# networks:
|
||||||
internal_traffic:
|
# internal_traffic:
|
||||||
ipv4_address: 192.168.3.41
|
# ipv4_address: 192.168.3.45
|
||||||
|
|
||||||
# deploy:
|
# deploy:
|
||||||
# resources:
|
# resources:
|
||||||
@@ -17,13 +17,47 @@ services:
|
|||||||
# cpus: '0.50'
|
# cpus: '0.50'
|
||||||
# memory: 1024M
|
# 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:
|
environment:
|
||||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||||
- POSTGRES_USER=${POSTGRES_USER}
|
- POSTGRES_USER=${POSTGRES_USER}
|
||||||
- POSTGRES_DB=${POSTGRES_DATABASE}
|
- 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:
|
adminer:
|
||||||
image: ghcr.io/shyim/adminerevo:latest
|
image: ghcr.io/shyim/adminerevo:latest
|
||||||
hostname: self_adminer
|
hostname: self_adminer
|
||||||
@@ -42,7 +76,7 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
internal_traffic:
|
internal_traffic:
|
||||||
ipv4_address: 192.168.3.44
|
ipv4_address: 192.168.3.44
|
||||||
restart: unless-stopped
|
#restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- data_redis:/data
|
- data_redis:/data
|
||||||
deploy:
|
deploy:
|
||||||
@@ -58,7 +92,7 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
internal_traffic:
|
internal_traffic:
|
||||||
ipv4_address: 192.168.3.42
|
ipv4_address: 192.168.3.42
|
||||||
restart: unless-stopped
|
#restart: unless-stopped
|
||||||
env_file: .env
|
env_file: .env
|
||||||
command: --sort_buffer_size=512K
|
command: --sort_buffer_size=512K
|
||||||
volumes:
|
volumes:
|
||||||
@@ -71,6 +105,8 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
data_postgres:
|
data_postgres:
|
||||||
external: true
|
external: true
|
||||||
|
data_postgres18:
|
||||||
|
external: true
|
||||||
data_mysql:
|
data_mysql:
|
||||||
external: true
|
external: true
|
||||||
data_redis:
|
data_redis:
|
||||||
|
|||||||
Reference in New Issue
Block a user