blob: 492779feacb28478e95f27683fa387e2ff63948c [file]
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
services:
iggy-server:
build:
context: ../..
dockerfile: core/server/Dockerfile
args:
PROFILE: debug
command: ["--fresh", "--with-default-root-credentials"]
container_name: iggy-server-php-test
security_opt:
- seccomp:unconfined
environment:
- IGGY_HTTP_ADDRESS=0.0.0.0:3000
- IGGY_TCP_ADDRESS=0.0.0.0:8090
- IGGY_QUIC_ADDRESS=0.0.0.0:8080
- IGGY_WEBSOCKET_ADDRESS=0.0.0.0:8092
networks:
- php-test-network
ports:
- "3000:3000"
- "8080:8080"
- "8090:8090"
healthcheck:
test: ["CMD", "/usr/local/bin/iggy", "--tcp-server-address", "127.0.0.1:8090", "ping"]
interval: 5s
timeout: 5s
retries: 12
start_period: 10s
volumes:
- iggy-data:/local_data
php-tests:
build:
context: ../..
dockerfile: foreign/php/Dockerfile.test
container_name: php-sdk-tests
depends_on:
iggy-server:
condition: service_healthy
networks:
- php-test-network
environment:
- IGGY_HOST=iggy-server
- IGGY_PORT=8090
- IGGY_USERNAME=iggy
- IGGY_PASSWORD=iggy
volumes:
- ./test-results:/workspace/foreign/php/test-results
networks:
php-test-network:
name: php-test-network
volumes:
iggy-data: