Skip to content

Commit

Permalink
Debug compose for macos attempt no4
Browse files Browse the repository at this point in the history
  • Loading branch information
Etienne Jodry authored and Etienne Jodry committed Sep 17, 2024
1 parent e156cd4 commit dfa85bc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 19 deletions.
23 changes: 5 additions & 18 deletions compose.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
extra_hosts:
- "host.minikube.internal:10.10.0.3"
healthcheck:
test: python3 -c "import requests; exit(requests.get('http://example:8000/live').text != 'live\n');"
test: python3 -c "import requests; exit(requests.get('http://localhost:8000/live').text != 'live\n');"
interval: 5s
timeout: 5s
retries: 10
Expand All @@ -23,28 +23,15 @@ services:
condition: service_healthy
s3bucket:
condition: service_healthy
ports:
- 8000:8000
stdin_open: true
tty: true
networks:
biodm-dev:
ipv4_address: 10.10.0.6
# networks:
# biodm-dev:
# aliases:
# # - example.local
# - host.docker.internal
network_mode: host

example-swagger-ui:
image: swaggerapi/swagger-ui:v5.17.14
ports:
- "9080:8080"
depends_on:
example:
condition: service_healthy
environment:
API_URL: http://host.docker.internal:8000/schema
networks:
biodm-dev:
ipv4_address: 10.10.0.7
PORT: 9080
API_URL: http://localhost:8000/schema
network_mode: host
3 changes: 2 additions & 1 deletion compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,15 @@ services:
swagger-ui:
image: swaggerapi/swagger-ui:v5.17.14
ports:
- "9080:8080"
- 9080:8080
environment:
API_URL: http://localhost:8000/schema

networks:
biodm-dev:
driver: bridge
ipam:
driver: default
config:
- subnet: 10.10.0.0/16
gateway: 10.10.0.1

0 comments on commit dfa85bc

Please sign in to comment.