version: "3.7" services: db: image: postgres:12 container_name: docker-sf5-postgres volumes: #- ./data:/var/lib/postgresql/data - ./docker_build/db/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d environment: - "POSTGRES_USER=admin" - "POSTGRES_PASSWORD=secret" - "POSTGRES_DB=postgres" ports: - "5432:5432" nginx: image: nginx:latest container_name: docker-sf5-nginx working_dir: /var/www/app volumes: - ./app:/var/www/app - ./docker_build/nginx/nginx.conf:/etc/nginx/conf.d/default.conf ports: - "8000:80" php: &php-fpm build: context: ./docker_build/php args: UID: 1000 container_name: docker-sf5-php image: php-fpm_sf5:latest working_dir: /var/www/app volumes: - ./app:/var/www/app - ./docker_build/php/php-ini-overrides.ini:/etc/php/7.2/fpm/conf.d/99-overrides.ini