You've already forked Php-Template
All checks were successful
🧪✨ Tests Workflow / 🛡️ 🔒 Library Audit (push) Successful in 1m32s
🧪✨ Tests Workflow / 📝 ✨ Code Lint (push) Successful in 1m31s
🧪✨ Tests Workflow / 🛡️ 🔒 License Check (push) Successful in 1m41s
🧪✨ Tests Workflow / 🧪 ✨ Database Migrations (push) Successful in 1m50s
🧪✨ Tests Workflow / 🐙 🔍 Code Sniffer (push) Successful in 1m40s
🧪✨ Tests Workflow / 🧪 ✅ Unit Tests (push) Successful in 1m37s
🏗️✨ Build Workflow / 🖥️ 🔨 Build (push) Successful in 12m3s
🏗️✨ Build Workflow / 🖥️ 🔨 Build Migrations (push) Successful in 1m36s
Reviewed-on: #8 Co-authored-by: Ron Rise <ron@siteworxpro.com> Co-committed-by: Ron Rise <ron@siteworxpro.com>
74 lines
1.7 KiB
YAML
74 lines
1.7 KiB
YAML
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 |