Category : typeorm

I have local MySQL database created in docker container from following docker-compose.yml version: ‘3.6’ services: mysql: environment: – MYSQL_DATABASE=root – MYSQL_ROOT_PASSWORD=changeme – MYSQL_USER=dbuser – MYSQL_PASSWORD=changeme command: – –table_definition_cache=100 – –performance_schema=0 – –default-authentication-plugin=mysql_native_password – –innodb_use_native_aio=0 volumes: – ./init:/docker-entrypoint-initdb.d container_name: mysqldb image: mysql And it’s working fine – I can enter docker container, log in as root ..

Read more

I’m currently building a system in Node with a Postgres db, and I’ve created a container using docker-compose for both. By running docker-compose up I manage to initialize all container (Node app, Postgres db and PGAdmin) and a connection is successfully established. server | yarn run v1.22.5 server | $ ts-node-dev –respawn –ignore-watch node_modules src/index.ts ..

Read more

I’m currently building a system in Node with a Postgres db, and I’ve created a container using docker-compose for both. By running docker-compose up I manage to initialize all container (Node app, Postgres db and PGAdmin) and a connection is successfully established. server | yarn run v1.22.5 server | $ ts-node-dev –respawn –ignore-watch node_modules src/index.ts ..

Read more

I have a nestjs app with SQL Server, and docker-compose: version: "3.8" services: bounty: networks: – bounty depends_on: – db build: ./ ports: – 4000:4000 db: build: ./mssqldocker networks: – bounty hostname: sql-server environment: ACCEPT_EULA: Y SA_PASSWORD: 2astazeY ports: – 1433:1433 container_name: sql-server volumes: bounty: networks: bounty: backend and database connect eachother but typeorm has ..

Read more

docker-compose.yml version: ‘3.7’ services: backend: container_name: backend build: context: backend dockerfile: Dockerfile ports: – 8000:8000 volumes: – ./backend:/app depends_on: – pgdb pgdb: container_name: pgdb image: postgres environment: POSTGRES_PASSWORD: ‘admin’ POSTGRES_USER: ‘postgres’ POSTGRES_DB: ‘ambassador’ ports: – 5432:5432 volumes: – db-data:/var/lib/postgresql volumes: db-data: Dockerfile FROM node:16 WORKDIR /app COPY package.json . COPY yarn.lock . RUN yarn install ..

Read more