This commit is contained in:
Халимов Рустам
2026-05-07 23:34:28 +03:00
parent 9daa786cfb
commit d4c41b333a

View File

@@ -1,7 +1,6 @@
services:
db:
image: postgres:15-alpine
container_name: knot-db
restart: always
environment:
- POSTGRES_USER
@@ -10,20 +9,19 @@ services:
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
- "${DB_PORT:-5432}:5432"
server:
build:
context: ../backend
dockerfile: Dockerfile
container_name: knot-server
restart: always
depends_on:
- db
- minio
- mongo
ports:
- "5059:8080"
- "${SERVER_PORT:-5059}:8080"
environment:
- DATABASE_URL
- MONGO_CONNECTION
@@ -41,23 +39,21 @@ services:
minio:
image: minio/minio
container_name: knot-minio
restart: always
environment:
- MINIO_ROOT_USER
- MINIO_ROOT_PASSWORD
ports:
- "9000:9000"
- "9001:9001"
- "${MINIO_API_PORT:-9000}:9000"
- "${MINIO_CONSOLE_PORT:-9001}:9001"
command: server /data --console-address ":9001"
volumes:
- minio_data:/data
mongo:
image: mongo:6-jammy
container_name: knot-mongo
restart: always
ports:
- "27017:27017"
- "${MONGO_PORT:-27017}:27017"
volumes:
- mongo_data:/data/db
@@ -65,10 +61,9 @@ services:
build:
context: ..
dockerfile: client-web/Dockerfile
container_name: knot-web
restart: always
ports:
- "9090:80"
- "${WEB_PORT:-9090}:80"
depends_on:
- server