version: '2.1'
services:
  web:
    image: "ket4yii/php-censor:web"
    ports:
    - "80:80"
    networks:
    - default 
    depends_on:
      psql:
        condition: service_healthy
      queue:
        condition: service_started
    env_file:
    - ./env/phpcensor.env
  worker:
    image: "ket4yii/php-censor:worker"
    networks:
    - default 
    depends_on:
      psql:
        condition: service_healthy
      queue:
        condition: service_started
    env_file:
    - ./env/phpcensor.env
  psql:
    image: "postgres"
    user: postgres
    networks:
      default:
        aliases:
        - db
    env_file:
    - ./env/database.env
    healthcheck:
      test: psql -lqt | cut -d \| -f 1 | grep -qw $$POSTGRES_DB
      interval: 10s
      timeout: 10s
      retries: 3
  queue:
    image: "schickling/beanstalkd"
    networks:
      default:
        aliases:
        - beanstalk


version: '2.1'
services:
  web:
    image: "ket4yii/php-censor:web"
    ports:
    - "80:80"
    depends_on:
    - db
    - queue
    env_file:
    - ./env/phpcensor.env
  worker:
    image: "ket4yii/php-censor:worker"
    depends_on:
    - db
    - queue
    env_file:
    - ./env/phpcensor.env
  db:
    image: "postgres"
    user: postgres
    env_file:
    - ./env/database.env
  queue:
    image: "schickling/beanstalkd"
    networks:
      default:
        aliases:
        - beanstalk


Delete healthchecks. Delete redundant things
[compose] Delete healthchecks. Delete redundant things
