diff --git a/docker-compose-dev.yml b/docker-compose-dev.yml new file mode 100644 index 0000000..7f7beee --- /dev/null +++ b/docker-compose-dev.yml @@ -0,0 +1,58 @@ +version: '3.8' + +services: + api-build: + container_name: ionicapp_api_build + restart: "no" + build: + context: docker/api + dockerfile: ./Dockerfile + user: "node" + tty: true + volumes: + - ./:/app + command: > + bash -c "npm ci + && rm -rf dist + && npm run build" + + api-run: + container_name: ionicapp_api_run + restart: unless-stopped + depends_on: + - postgres + - redis + build: + context: docker/api + dockerfile: ./Dockerfile + user: "node" + tty: true + volumes: + - ./:/app + ports: + - ${PORT}:3000 + - ${DEBUG_PORT}:9229 + command: ["npm", "run", "start:prod"] + + postgres: + container_name: ionicapp_postgres + restart: unless-stopped + build: + dockerfile: docker/postgres/Dockerfile + environment: + POSTGRES_USER: ${DB_USERNAME} + POSTGRES_PASSWORD: ${DB_PASSWORD} + POSTGRES_DB: ${DB_DATABASE} + ports: + - ${DB_PORT}:5432 + volumes: + - ./docker/postgres/data:/var/lib/postgresql/data + + redis: + container_name: ionicapp_redis + restart: unless-stopped + image: redis:alpine + ports: + - ${REDIS_PORT}:6379 + volumes: + - ./docker/redis/data:/data \ No newline at end of file diff --git a/infra/package-lock.json b/infra/package-lock.json index 3bec909..37593ad 100644 --- a/infra/package-lock.json +++ b/infra/package-lock.json @@ -1,12 +1,12 @@ { "name": "infra", - "version": "0.1.2", + "version": "0.1.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "infra", - "version": "0.1.2", + "version": "0.1.4", "dependencies": { "aws-cdk-lib": "2.208.0", "constructs": "^10.0.0" diff --git a/infra/package.json b/infra/package.json index 0bad5df..5477106 100644 --- a/infra/package.json +++ b/infra/package.json @@ -1,6 +1,6 @@ { "name": "infra", - "version": "0.1.2", + "version": "0.1.4", "bin": { "infra": "bin/infra.js" }, diff --git a/package-lock.json b/package-lock.json index 4dfd1f0..b656568 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ionicapp", - "version": "0.0.6", + "version": "0.0.7", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "ionicapp", - "version": "0.0.6", + "version": "0.0.7", "license": "UNLICENSED", "dependencies": { "@nestjs/common": "^11.0.1", diff --git a/package.json b/package.json index b5d0802..2da2013 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ionicapp", - "version": "0.0.6", + "version": "0.0.7", "description": "", "author": "", "private": true,