feat: add ollama & PostgresSQL & Qdrant & RabbitMQ
This commit is contained in:
1
src/postgres/.env.example
Normal file
1
src/postgres/.env.example
Normal file
@@ -0,0 +1 @@
|
||||
POSTGRES_PASSWORD=
|
||||
38
src/postgres/docker-compose.yaml
Normal file
38
src/postgres/docker-compose.yaml
Normal file
@@ -0,0 +1,38 @@
|
||||
x-default: &default
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- &localtime /etc/localtime:/etc/localtime:ro
|
||||
- &timezone /etc/timezone:/etc/timezone:ro
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: 100m
|
||||
|
||||
services:
|
||||
postgres:
|
||||
<<: *default
|
||||
image: postgres:${POSTGRES_VERSION:-17.6}
|
||||
environment:
|
||||
POSTGRES_USER: ${POSTGRES_USER:-postgres}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
|
||||
POSTGRES_DB: ${POSTGRES_DB:-postgres}
|
||||
volumes:
|
||||
- *localtime
|
||||
- *timezone
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
|
||||
# Initialize the database with a custom SQL script
|
||||
# - ./init.sql:/docker-entrypoint-initdb.d/init.sql
|
||||
ports:
|
||||
- "${POSTGRES_PORT:-5432}:5432"
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '1.0'
|
||||
memory: 1G
|
||||
reservations:
|
||||
cpus: '0.5'
|
||||
memory: 512M
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
Reference in New Issue
Block a user