diff --git a/compose.example.yml b/compose.example.yml index 4f21293..4b23aae 100644 --- a/compose.example.yml +++ b/compose.example.yml @@ -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 @@ -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 diff --git a/compose.yml b/compose.yml index a3dd2f2..c92c794 100644 --- a/compose.yml +++ b/compose.yml @@ -100,7 +100,7 @@ services: swagger-ui: image: swaggerapi/swagger-ui:v5.17.14 ports: - - "9080:8080" + - 9080:8080 environment: API_URL: http://localhost:8000/schema @@ -108,6 +108,7 @@ networks: biodm-dev: driver: bridge ipam: + driver: default config: - subnet: 10.10.0.0/16 gateway: 10.10.0.1