start_sf5_project/docker-compose.yml

36 lines
940 B
YAML
Raw Normal View History

2021-02-18 12:55:13 +00:00
version: "3.7"
2017-12-27 19:03:06 +00:00
services:
2021-02-18 12:55:13 +00:00
db:
image: postgres:12
2017-12-27 19:03:06 +00:00
volumes:
2021-02-18 17:11:04 +00:00
# uncomment to keep data out of docker volumes
# - ./data:/var/lib/postgresql/data
2021-02-18 12:55:13 +00:00
- ./docker_build/db/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
2017-12-27 19:03:06 +00:00
environment:
2021-02-18 16:46:47 +00:00
- "POSTGRES_USER=postgres"
2021-02-18 12:55:13 +00:00
- "POSTGRES_PASSWORD=secret"
- "POSTGRES_DB=postgres"
2017-12-27 19:03:06 +00:00
ports:
2021-02-18 12:55:13 +00:00
- "5432:5432"
2017-12-27 19:03:06 +00:00
2021-02-18 12:55:13 +00:00
nginx:
image: nginx:latest
working_dir: /var/www/app
2017-12-27 19:03:06 +00:00
volumes:
2021-02-18 12:55:13 +00:00
- ./app:/var/www/app
- ./docker_build/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
2017-12-27 19:03:06 +00:00
ports:
- "8000:80"
2021-02-18 12:55:13 +00:00
php: &php-fpm
build:
context: ./docker_build/php
args:
UID: 1000
image: php-fpm_sf5:latest
working_dir: /var/www/app
2017-12-27 19:03:06 +00:00
volumes:
2021-02-18 12:55:13 +00:00
- ./app:/var/www/app
- ./docker_build/php/php-ini-overrides.ini:/etc/php/7.2/fpm/conf.d/99-overrides.ini