From cb1e16c7ff211ca8c7c72edc9bc4eb3d5e94c7c2 Mon Sep 17 00:00:00 2001 From: chk <79915315+ChKendel@users.noreply.github.com> Date: Sun, 15 Feb 2026 22:00:47 +0100 Subject: [PATCH] yaml work --- docker-compose.yaml | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 64b2acb..9f72ba3 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,37 +1,40 @@ version: "3.9" services: - app: + + # Info + appServerInfo: image: node:20-alpine - container_name: info-node-app + container_name: appServerInfo working_dir: /app command: sh -c "npm install && node server.js" volumes: - - ./app:/app - - ./checks:/app/checks + - /home/chk/Documents/appServerInfo/app:/app + - /home/chk/Documents/appServerInfo/app/checks:/app/checks - /var/run/docker.sock:/var/run/docker.sock ports: - - "3000:3000" + - "3030:3000" depends_on: - - db + - appServerInfoDB environment: - DB_HOST: db + DB_HOST: appServerInfoDB DB_USER: postgres DB_PASSWORD: postgres DB_NAME: infodb DB_PORT: 5432 restart: unless-stopped - db: + appServerInfoDB: image: postgres:16-alpine - container_name: info-postgres + container_name: appServerInfoDB restart: unless-stopped environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres POSTGRES_DB: infodb volumes: - - ./pgdata:/var/lib/postgresql/data - - ./db/init.sql:/docker-entrypoint-initdb.d/init.sql + - /home/chk/Documents/appServerInfo/pgdata:/var/lib/postgresql/data + - /home/chk/Documents/appServerInfo/db/init.sql:/docker-entrypoint-initdb.d/init.sql ports: - "5432:5432" + \ No newline at end of file