start_sf5_project/docker-compose.yml

38 lines
999 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
container_name: docker-sf5-postgres
2017-12-27 19:03:06 +00:00
volumes:
2021-02-18 12:55:13 +00:00
#- ./data:/var/lib/postgresql/data
- ./docker_build/db/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
2017-12-27 19:03:06 +00:00
environment:
2021-02-18 12:55:13 +00:00
- "POSTGRES_USER=admin"
- "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
container_name: docker-sf5-nginx
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
container_name: docker-sf5-php
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