28 lines
633 B
YAML
28 lines
633 B
YAML
version: '3'
|
|
|
|
services:
|
|
web:
|
|
image: nginx:latest
|
|
ports:
|
|
- "80:80"
|
|
volumes:
|
|
- ./webroot:/webroot:ro
|
|
- ./resources/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
|
|
- ./resources/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
|
|
networks:
|
|
- backend
|
|
restart: always
|
|
|
|
php:
|
|
build: ./php/
|
|
volumes:
|
|
- ./webroot:/webroot:ro
|
|
- ./resources/php/custom.ini:/usr/local/etc/php/conf.d/custom.ini:ro
|
|
networks:
|
|
- backend
|
|
restart: always
|
|
|
|
networks:
|
|
backend:
|
|
driver: bridge
|