-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
66 lines (65 loc) · 1.29 KB
/
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: '3.1'
services:
web:
image: nginx
volumes:
- ./.docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
- .:/var/www/symfony
ports:
- 8080:80
restart: always
depends_on:
- php
- mysql
- node
mysql:
image: mysql:8
command: --default-authentication-plugin=caching_sha2_password --log-bin-trust-function-creators=1
restart: always
volumes:
- ./sql:/docker-entrypoint-initdb.d
environment:
MYSQL_ROOT_PASSWORD: lyac
MYSQL_DATABASE: lyac
php:
build:
context: .docker/php7-fpm
args:
TIMEZONE: ${TIMEZONE}
volumes:
- .:/var/www/symfony
depends_on:
- mysql
environment:
APP_ENV: test
composer:
build:
context: .docker/php7-fpm
args:
TIMEZONE: ${TIMEZONE}
volumes:
- .:/var/www/symfony
depends_on:
- php
environment:
COMPOSER_ALLOW_SUPERUSER: 1
APP_ENV: test
command:
- /bin/bash
- -c
- |
/usr/bin/composer install
node:
image: node
volumes:
- .:/app
working_dir: /app
command:
- /bin/bash
- -c
- |
yarn install
yarn encore dev
depends_on:
composer:
condition: service_completed_successfully