Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions docker-compose-dev.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions infra/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion infra/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "infra",
"version": "0.1.2",
"version": "0.1.4",
"bin": {
"infra": "bin/infra.js"
},
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ionicapp",
"version": "0.0.6",
"version": "0.0.7",
"description": "",
"author": "",
"private": true,
Expand Down
Loading