start_sf5_project/docker-compose.yml
2021-02-18 18:11:04 +01:00

36 lines
940 B
YAML

version: "3.7"
services:
db:
image: postgres:12
volumes:
# uncomment to keep data out of docker volumes
# - ./data:/var/lib/postgresql/data
- ./docker_build/db/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
environment:
- "POSTGRES_USER=postgres"
- "POSTGRES_PASSWORD=secret"
- "POSTGRES_DB=postgres"
ports:
- "5432:5432"
nginx:
image: nginx:latest
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
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