ctdo.de/docker-compose.yml

27 lines
495 B
YAML
Raw Permalink Normal View History

2023-10-06 14:25:43 +00:00
version: '3.8'
services:
2023-10-06 14:25:43 +00:00
nginx:
image: nginx
ports:
2023-10-06 14:25:43 +00:00
- 8081:80
volumes:
2023-10-06 14:25:43 +00:00
- ./nginx.conf:/etc/nginx/nginx.conf
- ./app:/var/www/html
2023-10-06 14:25:43 +00:00
depends_on:
- php
restart: unless-stopped
composer:
2023-10-06 14:25:43 +00:00
image: composer
volumes:
- ./app:/app
2023-10-06 14:25:43 +00:00
command: install --no-dev
php:
build:
context: .
dockerfile: php.Dockerfile
volumes:
- ./app:/var/www/html
- ./php.ini:/usr/local/etc/php/php.ini
restart: unless-stopped