generated from wednesday-solutions/nodejs-hapi-template
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6debdbb
commit 4bda6e3
Showing
3 changed files
with
36 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters