volumes: redisdata: {} pgdata: {} services: composer-runtime: volumes: - .:/app image: siteworxpro/composer entrypoint: "/bin/sh -c 'while true; do sleep 30; done;'" environment: PHP_IDE_CONFIG: serverName=localhost migration-container: volumes: - ./db/migrations:/app/db/migrations - ./bin:/app/bin image: siteworxpro/migrate:v4.18.3 working_dir: /app # entrypoint: "/bin/sh -c 'while true; do sleep 30; done;'" entrypoint: /bin/sh -c '/app/bin/migrate.sh' depends_on: postgres: condition: service_healthy environment: DB_USERNAME: ${DB_USERNAME:-siteworxpro} DB_PASSWORD: ${DB_PASSWORD:-password} DB_DATABASE: ${DB_DATABASE:-siteworxpro} DB_HOST: ${DB_HOST-postgres} DB_PORT: ${DB_PORT-5432} dev-runtime: ports: - "9501:9501" volumes: - .:/app build: context: . dockerfile: Dockerfile entrypoint: "/bin/sh -c 'while true; do sleep 30; done;'" environment: PHP_IDE_CONFIG: serverName=localhost WORKERS: 1 DEBUG: 1 REDIS_HOST: redis redis: image: redis:latest healthcheck: test: ["CMD", "redis-cli", "ping"] interval: 10s timeout: 5s retries: 5 ports: - "6379:6379" volumes: - redisdata:/data postgres: image: postgres:latest healthcheck: test: ["CMD-SHELL", "pg_isready -U ${DB_USERNAME:-siteworxpro}"] interval: 10s timeout: 5s retries: 5 environment: POSTGRES_USER: ${DB_USERNAME:-siteworxpro} POSTGRES_PASSWORD: ${DB_PASSWORD:-password} POSTGRES_DB: ${DB_DATABASE:-siteworxpro} ports: - "5432:5432" volumes: - pgdata:/var/lib/postgresql/data