start_sf5_project_reboot/docker-compose.yml

38 lines
1.0 KiB
YAML
Raw Normal View History

2021-04-17 19:46:00 +00:00
version: "3.7"
services:
# By default, database is managed in a single sqlite file.
# Comment to disable db container
db:
image: postgres:12
volumes:
# comment to keep data in a 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