add public api
This commit is contained in:
parent
84bc9bbec6
commit
dd828bb595
|
|
@ -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"
|
||||
|
|
@ -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"
|
||||
Loading…
Reference in New Issue