services: paste: build: . ports: - "5000:5000" environment: PASTE_REDIS_HOST: "redis" healthcheck: test: [ 'CMD', 'wget', '-q', '--spider', 'http://localhost/health'] redis: image: "redis:7.0" healthcheck: test: [ 'CMD', 'redis-cli', 'ping' ]