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