- Add all PHP app files (controllers, middleware, providers, models, enums) that were previously gitignored via app/.gitignore wildcard - Fix app/.gitignore to no longer ignore all files - Fix docker-compose.yml: use named volume for postgres to avoid chown permission errors on server - Fix Dockerfile: use --classmap-authoritative for composer dump-autoload Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
40 lines
737 B
YAML
Executable File
40 lines
737 B
YAML
Executable File
version: '3.2'
|
|
|
|
services:
|
|
app:
|
|
build:
|
|
context: .
|
|
dockerfile: _docker/app/Dockerfile
|
|
container_name: rate_app
|
|
restart: always
|
|
volumes:
|
|
- ./:/var/www
|
|
depends_on:
|
|
- db
|
|
web:
|
|
container_name: rate_nginx
|
|
image: nginx:latest
|
|
restart: always
|
|
volumes:
|
|
- ./:/var/www
|
|
- ./_docker/nginx/conf.d:/etc/nginx/conf.d
|
|
ports:
|
|
- "8005:80"
|
|
depends_on:
|
|
- app
|
|
db:
|
|
container_name: rate_db
|
|
image: postgres:10
|
|
restart: always
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
environment:
|
|
POSTGRES_DATABASE: rate_app
|
|
POSTGRES_USER: rate_app
|
|
POSTGRES_PASSWORD: rate_app
|
|
redis:
|
|
image: redis
|
|
|
|
volumes:
|
|
postgres_data:
|