recompose, but with postgres:15-alpine

pull/53/head
kouhai dev 2023-04-15 17:31:21 -07:00
parent ad81a51e37
commit d805785e90
1 changed files with 5 additions and 4 deletions

View File

@ -2,16 +2,17 @@ version: '3'
services:
db:
restart: always
image: postgres:14-alpine
image: postgres:15-alpine
shm_size: 256mb
networks:
- internal_network
healthcheck:
test: ['CMD', 'pg_isready', '-U', 'postgres']
volumes:
- ./data/postgres14:/var/lib/postgresql/data
- ./data/postgres.15:/var/lib/postgresql/data
environment:
- 'POSTGRES_HOST_AUTH_METHOD=trust'
- 'POSTGRES_USER=mastodon'
redis:
restart: always
@ -21,7 +22,7 @@ services:
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
volumes:
- ./redis:/data
- ./data/redis:/data
# es:
# restart: always
@ -82,7 +83,7 @@ services:
# - es
volumes:
- ./public/system:/mastodon/public/system
- ./data/postgres14:/var/lib/postgresql/data
# - ./data/postgres:/var/lib/postgresql/data
streaming:
build: .