feat(): docker for backend and ml

This commit is contained in:
gitgernit
2025-11-22 13:57:31 +03:00
parent 099fecc218
commit 00af067f4d
8 changed files with 209 additions and 153 deletions
+37 -1
View File
@@ -5,7 +5,7 @@ services:
build:
context: .
dockerfile: Containerfile
target: runtime
target: backend
tags:
- template-project-backend:latest
pull: true
@@ -59,6 +59,40 @@ services:
bind:
selinux: z
ml:
build:
context: .
dockerfile: Containerfile
target: ml
tags:
- template-project-ml:latest
pull: true
healthcheck:
test: [ "CMD", "curl", "-fsS", "http://localhost:8081/healthcheck" ]
interval: 5s
timeout: 4s
start_period: 5s
start_interval: 2s
retries: 5
networks:
- default
ports:
- name: web
target: 8081
published: 13562
host_ip: 127.0.0.1
protocol: tcp
app_protocol: http
restart: unless-stopped
shm_size: 4mb
volumes:
- type: bind
source: ./infrastructure/configs/ml/config.toml
target: /app/config.toml
read_only: true
bind:
selinux: z
tests:
build:
context: .
@@ -187,6 +221,8 @@ services:
- type: volume
source: postgres_data
target: /var/lib/postgresql/data
ports:
- "5432:5432"
pgadmin:
image: docker.io/dpage/pgadmin4:9