services: elasticsearch: image: 'docker.elastic.co/elasticsearch/elasticsearch:7.17.10' environment: - 'ELASTIC_PASSWORD=secret' - 'discovery.type=single-node' - 'xpack.security.enabled=false' ports: - '9200' - '9300' postgres: image: 'postgres:latest' environment: - 'POSTGRES_DB=mydatabase' - 'POSTGRES_PASSWORD=secret' - 'POSTGRES_USER=myuser' ports: - '5432' redis: image: 'redis:latest' ports: - '6379'