-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (38 loc) · 814 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (38 loc) · 814 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
version: '3.7'
networks:
application:
driver: bridge
services:
php:
build:
context: ./docker/php
container_name: php
restart: unless-stopped
volumes:
- ./:/var/www/html
networks:
- application
nginx:
build:
context: ./docker/nginx
container_name: nginx
restart: unless-stopped
volumes_from:
- php
volumes:
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./docker/nginx/sites/:/etc/nginx/sites-available
- ./docker/nginx/conf.d/:/etc/nginx/conf.d
depends_on:
- php
ports:
- "${APP_PORT:-80}:80"
- "${APP_SECURE_PORT:-443}:443"
networks:
- application
composer:
image: composer
container_name: composer
volumes_from:
- php
working_dir: /var/www/html