32 lines
893 B
YAML
32 lines
893 B
YAML
services:
|
|
solid-pg:
|
|
restart: always
|
|
image: postgres:17
|
|
environment:
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
|
POSTGRES_MULTIPLE_DATABASES: solid_cache, solid_queue
|
|
ports:
|
|
- "${HOST_IP}:5432:5432"
|
|
volumes:
|
|
- ./postgresql.${HOST_KIND}.conf:/etc/postgresql/postgresql.conf:ro
|
|
- ./multiple-databases.sh:/docker-entrypoint-initdb.d/multiple-databases.sh
|
|
- ./pglogs:/var/log/postgresql
|
|
|
|
- pgdata:/var/lib/postgresql/data
|
|
# - /var/pgdata/17:/var/lib/postgresql/data
|
|
|
|
command: ["postgres", "-c", "config_file=/etc/postgresql/postgresql.conf"]
|
|
|
|
solid-bounce:
|
|
restart: always
|
|
image: edoburu/pgbouncer:latest
|
|
depends_on:
|
|
- solid-pg
|
|
ports:
|
|
- "${HOST_IP}:6432:5432"
|
|
volumes:
|
|
- ./pgbouncer.ini:/etc/pgbouncer/pgbouncer.ini:ro
|
|
- ./userlist.txt:/etc/pgbouncer/userlist.txt
|
|
|
|
volumes:
|
|
pgdata: |