| # 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. | |
| # Single Apache Iggy node built from this checkout. | |
| # | |
| # IGGY_ROOT_PASSWORD=... docker compose up -d | |
| # | |
| # The server refuses to start without root credentials. IGGY_ROOT_USERNAME | |
| # defaults to iggy. | |
| services: | |
| iggy-server: | |
| build: | |
| context: . | |
| dockerfile: Dockerfile | |
| container_name: iggy-server | |
| restart: unless-stopped | |
| cap_add: | |
| - SYS_NICE | |
| security_opt: | |
| - seccomp:unconfined | |
| ulimits: | |
| memlock: | |
| soft: -1 | |
| hard: -1 | |
| environment: | |
| # The image binds every listener to 0.0.0.0 (Dockerfile), so the address | |
| # clients dial has to be declared here. | |
| - IGGY_NODE_ADVERTISED_ADDRESS=localhost | |
| - IGGY_ROOT_USERNAME=${IGGY_ROOT_USERNAME:-iggy} | |
| - IGGY_ROOT_PASSWORD=${IGGY_ROOT_PASSWORD:?set IGGY_ROOT_PASSWORD} | |
| networks: | |
| - iggy | |
| ports: | |
| - 3000:3000 | |
| - 8080:8080 | |
| - 8090:8090 | |
| - 8092:8092 | |
| volumes: | |
| - iggy-server:/local_data | |
| volumes: | |
| iggy-server: | |
| driver: local | |
| networks: | |
| iggy: | |
| name: iggy-network |