-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (55 loc) · 1.46 KB
/
docker-compose.yml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
version: "3.1"
networks:
laravel:
services:
nginx:
image: "nginx:latest"
container_name: nginx
working_dir: "/var/www/html"
volumes:
- "./:/var/www/html"
- "./.docker/nginx/default.conf:/etc/nginx/conf.d/default.conf"
ports:
- "8080:80"
depends_on:
- php
networks:
- laravel
php:
build:
context: .docker/php
dockerfile: Dockerfile
args:
- PHPUSER=${PHPUSER:-www-data}
- PHPGROUP=${PHPGROUP:-www-data}
container_name: php
working_dir: "/var/www/html"
volumes:
- "./:/var/www/html"
networks:
- laravel
composer:
image: "composer:latest"
container_name: composer
working_dir: "/var/www/html"
volumes:
- "./:/var/www/html"
depends_on:
- php
entrypoint: ["composer", "--ignore-platform-reqs"]
networks:
- laravel
artisan:
build:
context: .docker/php
dockerfile: Dockerfile
args:
- PHPUSER=${PHPUSER:-www-data}
- PHPGROUP=${PHPGROUP:-www-data}
container_name: artisan
volumes:
- ./:/var/www/html:delegated
working_dir: /var/www/html
entrypoint: ["php", "/var/www/html/artisan"]
networks:
- laravel