-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #91 from WildCodeSchool/22_download_part2
22 download part2
- Loading branch information
Showing
15 changed files
with
1,519 additions
and
351 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
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 |
---|---|---|
@@ -1,68 +1,68 @@ | ||
services: | ||
backend: | ||
build: ./backend | ||
volumes: | ||
- ./backend/src:/app/src | ||
env_file: | ||
- .env | ||
healthcheck: | ||
test: 'curl --fail --request POST --header ''content-type: application/json'' --url ''http://localhost:4000/graphql'' --data ''{"query":"query { __typename }"}'' || exit 1' | ||
interval: 1s | ||
timeout: 2s | ||
retries: 100 | ||
depends_on: | ||
db: | ||
condition: service_healthy | ||
frontend: | ||
build: ./frontend | ||
volumes: | ||
- ./frontend/src:/app/src | ||
depends_on: | ||
backend: | ||
condition: service_healthy | ||
env_file: | ||
- .env | ||
healthcheck: | ||
test: "curl --fail --request GET --url 'http://localhost:5173' || exit 1" | ||
interval: 1s | ||
timeout: 2s | ||
retries: 100 | ||
db: | ||
image: postgres | ||
healthcheck: | ||
test: [ "CMD-SHELL", "pg_isready -d postgres -U postgres" ] | ||
interval: 1s | ||
timeout: 2s | ||
retries: 100 | ||
environment: | ||
POSTGRES_PASSWORD: postgres | ||
volumes: | ||
- ./init.sql:/docker-entrypoint-initdb.d/init.sql | ||
- ./postgres-data/data:/var/lib/postgresql/data | ||
adminer: | ||
image: adminer | ||
ports: | ||
- 8080:8080 | ||
files: | ||
build: ./files | ||
healthcheck: | ||
test: "curl --fail --request GET --url 'http://localhost:3000' || exit 1" | ||
interval: 1s | ||
timeout: 2s | ||
env_file: | ||
- .env | ||
volumes: | ||
- ./files/src:/app/src | ||
apigateway: | ||
image: nginx | ||
volumes: | ||
- ./nginx.conf:/etc/nginx/nginx.conf | ||
depends_on: | ||
backend: | ||
condition: service_healthy | ||
frontend: | ||
condition: service_healthy | ||
files: | ||
condition: service_healthy | ||
ports: | ||
- "7002:80" | ||
backend: | ||
build: ./backend | ||
volumes: | ||
- ./backend/src:/app/src | ||
env_file: | ||
- .env | ||
healthcheck: | ||
test: 'curl --fail --request POST --header ''content-type: application/json'' --url ''http://localhost:4000/graphql'' --data ''{"query":"query { __typename }"}'' || exit 1' | ||
interval: 1s | ||
timeout: 2s | ||
retries: 100 | ||
depends_on: | ||
db: | ||
condition: service_healthy | ||
frontend: | ||
build: ./frontend | ||
volumes: | ||
- ./frontend/src:/app/src | ||
depends_on: | ||
backend: | ||
condition: service_healthy | ||
env_file: | ||
- .env | ||
healthcheck: | ||
test: "curl --fail --request GET --url 'http://localhost:5173' || exit 1" | ||
interval: 1s | ||
timeout: 2s | ||
retries: 100 | ||
db: | ||
image: postgres | ||
healthcheck: | ||
test: ["CMD-SHELL", "pg_isready -d postgres -U postgres"] | ||
interval: 1s | ||
timeout: 2s | ||
retries: 100 | ||
environment: | ||
POSTGRES_PASSWORD: postgres | ||
volumes: | ||
- ./init.sql:/docker-entrypoint-initdb.d/init.sql | ||
- ./postgres-data/data:/var/lib/postgresql/data | ||
adminer: | ||
image: adminer | ||
ports: | ||
- 8080:8080 | ||
files: | ||
build: ./files | ||
healthcheck: | ||
test: "curl --fail --request GET --url 'http://localhost:3000' || exit 1" | ||
interval: 1s | ||
timeout: 2s | ||
env_file: | ||
- .env | ||
volumes: | ||
- ./files/src:/app/src | ||
apigateway: | ||
image: nginx | ||
volumes: | ||
- ./nginx.conf:/etc/nginx/nginx.conf | ||
depends_on: | ||
backend: | ||
condition: service_healthy | ||
frontend: | ||
condition: service_healthy | ||
files: | ||
condition: service_healthy | ||
ports: | ||
- "7002:80" |
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
Oops, something went wrong.