1
0
Fork 0

add public api

This commit is contained in:
Ilya Mukhortov 2026-02-08 11:53:44 +10:00
parent 84bc9bbec6
commit dd828bb595
2 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,19 @@
networks:
medicine-network:
external:
name: "medicine-network"
services:
medicine-public-api:
restart: "always"
image: docker.med-logic.ru/medicine-public-api:latest
container_name: medicine-public-api
ports:
- "890:80"
networks:
- medicine-network
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"

View File

@ -0,0 +1,36 @@
networks:
medicine-network:
external: true
volumes:
postgres-data:
name: medicine-postgres-data
services:
postgres:
image: postgres:17
container_name: service-postgres
restart: always
shm_size: 1gb
command: >
postgres
-c shared_buffers=512MB
-c work_mem=4MB
-c max_connections=200
networks:
- medicine-network
environment:
POSTGRES_USER: ${MEDICINE_POSTGRES_USER:-user}
POSTGRES_PASSWORD: ${MEDICINE_POSTGRES_PASSWORD:-password}
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 10s
timeout: 5s
retries: 5
volumes:
- postgres-data:/var/lib/postgresql/data
logging:
driver: "json-file"
options:
max-size: "5m"
max-file: "5"