sqlalchemy is a good orm
This commit is contained in:
@ -1,4 +1,18 @@
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:15.1
|
||||
restart: always
|
||||
volumes:
|
||||
- ./postgres_data:/var/lib/postgresql/data/:rw
|
||||
environment:
|
||||
POSTGRES_USER: user
|
||||
POSTGRES_PASSWORD: password
|
||||
POSTGRES_DB: db
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -d db --user user"]
|
||||
interval: 2s
|
||||
timeout: 2s
|
||||
retries: 5
|
||||
bot:
|
||||
build:
|
||||
context: bot
|
||||
@ -11,12 +25,6 @@ services:
|
||||
HOST: postgres
|
||||
PORT: 5432
|
||||
restart: always
|
||||
postgres:
|
||||
image: postgres:15.1
|
||||
restart: always
|
||||
volumes:
|
||||
- ./postgres_data:/var/lib/postgresql/data/:Z
|
||||
environment:
|
||||
POSTGRES_USER: user
|
||||
POSTGRES_PASSWORD: password
|
||||
POSTGRES_DB: db
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
|
||||
Reference in New Issue
Block a user