Skip to content

Commit

Permalink
feat: experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
sagar-t-97 committed Jun 28, 2024
1 parent 6debdbb commit 06e2cdb
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 15 deletions.
1 change: 1 addition & 0 deletions .github/workflows/keploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
- name: Run the node-express-graphql template
run: |
docker compose -f docker-compose-1.yml --env-file=.env.docker up -d
chmod +x /home/runner/work/node-express-graphql-template/node-express-graphql-template/.github/workflows/test_workflows/keploy.sh
/home/runner/work/node-express-graphql-template/node-express-graphql-template/.github/workflows/test_workflows/keploy.sh
env:
Expand Down
30 changes: 30 additions & 0 deletions docker-compose-1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
version: '3'
networks:
node-express-graphql-template_default: {}
services:
db_postgres:
networks:
- node-express-graphql-template_default
image: postgres
ports:
- 5432:5432
restart: always
env_file:
- ./.env.docker
redis:
networks:
- node-express-graphql-template_default
image: 'redis:alpine'
depends_on:
wait-for-db:
condition: service_completed_successfully
ports:
- '6379:6379'
command: ['redis-server', '--bind', 'redis', '--port', '6379']
wait-for-db:
networks:
- node-express-graphql-template_default
image: atkrad/wait4x
depends_on:
- db_postgres
command: tcp db_postgres:${POSTGRES_PORT} -t 30s -i 250ms
20 changes: 5 additions & 15 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
version: '3'
networks:
node-express-graphql-template_node-express-graphql-template_default:
external: true
services:
db_postgres:
image: postgres
ports:
- 5432:5432
restart: always
env_file:
- .env.docker
redis:
image: 'redis:alpine'
ports:
- '6379:6379'
command: ['redis-server', '--bind', 'redis', '--port', '6379']
app:
networks:
- node-express-graphql-template_node-express-graphql-template_default
build:
context: .
args:
Expand All @@ -21,9 +14,6 @@ services:
PLATFORM: amd64
APP_PATH: ${APP_PATH}
restart: always
depends_on:
- db_postgres
- redis
ports:
- 9000:9000
environment:
Expand Down

0 comments on commit 06e2cdb

Please sign in to comment.