-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample.docker-compose.yaml
51 lines (49 loc) · 1.05 KB
/
sample.docker-compose.yaml
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
version: "3.8"
volumes:
mysql57:
name: mysql57
services:
server:
image: "nginx:stable-alpine"
platform: linux/x86_64
ports:
- "8000:80"
volumes:
- ./src:/var/www/html
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- php
- mysql
php:
build:
context: ./
dockerfile: php.dockerfile
volumes:
- ./src:/var/www/html:delegated
mysql:
image: mysql:5.7
platform: linux/x86_64
environment:
MYSQL_DATABASE: homestead
MYSQL_USER: homestead
MYSQL_PASSWORD: secret
MYSQL_ROOT_PASSWORD: secret
artisan:
build:
context: ./
dockerfile: php.dockerfile
volumes:
- ./src:/var/www/html
entrypoint: [ "php", "/var/www/html/artisan" ]
npm:
image: node:14
working_dir: /var/www/html
entrypoint: [ "npm" ]
volumes:
- ./src:/var/www/html
composer:
image: composer:latest
working_dir: /var/www/html
entrypoint: ["composer", "--ignore-platform-reqs"]
volumes:
- ./src:/var/www/html