Initial commits
This commit is contained in:
26
common.docker-compose.yml
Normal file
26
common.docker-compose.yml
Normal file
@ -0,0 +1,26 @@
|
||||
services:
|
||||
postgres:
|
||||
image: pgvector/pgvector:pg17
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
|
||||
start_period: 20s
|
||||
interval: 30s
|
||||
retries: 5
|
||||
timeout: 5s
|
||||
volumes:
|
||||
- ./scripts/psql-multi-init.sh:/docker-entrypoint-initdb.d/psql-multi-init.sh
|
||||
- ./docker-data/postgres:/var/lib/postgresql/data
|
||||
environment:
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASS:?database password required}
|
||||
POSTGRES_USER: ${POSTGRES_USER}
|
||||
POSTGRES_DB: ${POSTGRES_USER}
|
||||
POSTGRES_MULTIPLE_DATABASES: ${POSTGRES_MULTIPLE_DATABASES}
|
||||
env_file:
|
||||
- .env
|
||||
networks:
|
||||
- omukk-network
|
||||
|
||||
networks:
|
||||
omukk-network:
|
||||
external: true
|
||||
Reference in New Issue
Block a user