Added Nbgrader
This commit is contained in:
22
postgres/compose.yml
Normal file
22
postgres/compose.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:15-alpine
|
||||
container_name: postgres
|
||||
environment:
|
||||
POSTGRES_HOST: postgres
|
||||
POSTGRES_USER: ${POSTGRES_USER:-postgres}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
|
||||
POSTGRES_DB: ${POSTGRES_DB:-postgres}
|
||||
ports:
|
||||
- 5432:5432
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
restart: unless-stopped
|
||||
#healthcheck:
|
||||
# test: ["CMD-SHELL", "pg_isready -U postgres"]
|
||||
# interval: 5s
|
||||
# timeout: 5s
|
||||
# retries: 5
|
||||
|
||||
volumes:
|
||||
postgres_data: # Named volume for data persistence
|
0
postgres/init-multiple-db.sh
Normal file
0
postgres/init-multiple-db.sh
Normal file
6
postgres/postgresql.conf
Normal file
6
postgres/postgresql.conf
Normal file
@@ -0,0 +1,6 @@
|
||||
log_destination = 'stderr'
|
||||
logging_collector = on
|
||||
log_directory = '/var/log/postgres'
|
||||
log_filename = 'postgresql-%Y-%m-%d.log'
|
||||
log_statement = 'all'
|
||||
log_rotation_age = 1d
|
Reference in New Issue
Block a user