mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
41 lines
753 B
YAML
41 lines
753 B
YAML
version: '3'
|
|
services:
|
|
web:
|
|
build:
|
|
context: .
|
|
args:
|
|
PHP_VERSION: 7.4
|
|
ports:
|
|
- "9000:9000"
|
|
db:
|
|
image: mysql:5.7
|
|
environment:
|
|
MYSQL_DATABASE: laravel
|
|
MYSQL_USER: laravel
|
|
MYSQL_PASSWORD: secret
|
|
MYSQL_ROOT_PASSWORD: secret
|
|
ports:
|
|
- "3306:3306"
|
|
tests:
|
|
build:
|
|
context: .
|
|
args:
|
|
PHP_VERSION: 7.4
|
|
command: bash -c "composer install && php artisan migrate --seed && vendor/bin/phpunit"
|
|
links:
|
|
- db
|
|
- redis
|
|
acceptance:
|
|
image: node:14
|
|
working_dir: /app
|
|
volumes:
|
|
- ./:/app
|
|
command: bash -c "npm install && gulp build"
|
|
links:
|
|
- web
|
|
- redis
|
|
redis:
|
|
image: redis:6.0
|
|
ports:
|
|
- "6379:6379"
|