File tree Expand file tree Collapse file tree 7 files changed +154
-0
lines changed Expand file tree Collapse file tree 7 files changed +154
-0
lines changed Original file line number Diff line number Diff line change 1+ MYSQL_DATABASE=db
2+ MYSQL_USER=db_user
3+ MYSQL_PASSWORD=db_password
4+
5+ SYMFONY_APP=path
6+ ANGULAR_APP=path
Original file line number Diff line number Diff line change 1+ .idea /
2+ .env
Original file line number Diff line number Diff line change 1+ version : ' 3'
2+
3+ services :
4+ nginx :
5+ image : nginx:1.13
6+ ports :
7+ - " 80:80"
8+ volumes :
9+ - ./nginx/symfony_app.conf:/etc/nginx/conf.d/symfony_app.conf
10+ - ${SYMFONY_APP}:/var/www/symfony-app
11+ links :
12+ - php_fpm
13+ networks :
14+ default :
15+ aliases :
16+ - symfony-app.dev
17+
18+ php_fpm :
19+ build : ./php7.1
20+ ports :
21+ - " 9000:9000"
22+ links :
23+ - mysql
24+ volumes :
25+ - ${SYMFONY_APP}:/var/www/symfony-app
26+ - ./php7.1/php-ini-overrides.ini:/usr/local/etc/php/conf.d/99-overrides.ini
27+
28+ node :
29+ build : ./node
30+ ports :
31+ - 4200:4200
32+ volumes :
33+ - ${ANGULAR_APP}:/home/node/app/frontend
34+ tty : true
35+ command : cd /home/node/app/frontend && npm start
36+
37+ mysql :
38+ image : mysql:5.7
39+ volumes :
40+ - " mysql-data:/var/lib/mysql"
41+ environment :
42+ MYSQL_ROOT_PASSWORD : root
43+ MYSQL_DATABASE : ${MYSQL_DATABASE}
44+ MYSQL_USER : ${MYSQL_USER}
45+ MYSQL_PASSWORD : ${MYSQL_PASSWORD}
46+ ports :
47+ - 3306:3306
48+
49+ phpmyadmin :
50+ image : phpmyadmin/phpmyadmin
51+ environment :
52+ - PMA_ARBITRARY=1
53+ - PMA_HOST=mysql
54+ restart : always
55+ ports :
56+ - 3000:80
57+ volumes :
58+ - /sessions
59+ links :
60+ - mysql
61+
62+ volumes :
63+ mysql-data :
64+ external : true
Original file line number Diff line number Diff line change 1+ server {
2+ listen 80;
3+
4+ root /var/www/symfony-app/web;
5+
6+ server_name symfony-app.dev www.symfony-app.dev;
7+
8+ location / {
9+ try_files $uri /app_dev.php$is_args$args;
10+ }
11+
12+ location ~ ^/(app_dev|app|config)\.php(/|$) {
13+ fastcgi_pass php_fpm:9000;
14+ fastcgi_split_path_info ^(.+\.php)(/.*)$;
15+ include fastcgi_params;
16+ fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
17+ fastcgi_param DOCUMENT_ROOT $realpath_root;
18+ internal;
19+ }
20+
21+ location ~ /.well-known {
22+ allow all;
23+ }
24+
25+ error_log /var/log/nginx/symfony_app.dev_error.log;
26+ access_log /var/log/nginx/symfony_app.dev_access.log;
27+ }
Original file line number Diff line number Diff line change 1+ FROM node:8
2+
3+ USER node
4+
5+ RUN mkdir /home/node/.npm-global
6+ ENV PATH=/home/node/.npm-global/bin:$PATH
7+ ENV NPM_CONFIG_PREFIX=/home/node/.npm-global
8+
9+ ENV HOME=/home/node
10+
11+ WORKDIR $HOME/app
12+
13+ RUN npm i -g npm
14+
15+ RUN npm install -g @angular/cli && npm cache clean --force
16+
17+ EXPOSE 4200
18+
19+ CMD [ "node" ]
Original file line number Diff line number Diff line change 1+ FROM php:7.1-fpm
2+
3+ RUN apt-get update
4+ RUN apt-get install -y git-core
5+ RUN apt-get install -y zip unzip
6+ RUN apt-get install -y mc
7+ RUN apt-get install -y libpq-dev && docker-php-ext-install pdo pdo_pgsql pdo_mysql
8+ RUN apt-get install -y libicu-dev && docker-php-ext-install intl
9+ RUN apt-get install -y libcurl4-gnutls-dev && docker-php-ext-install curl
10+ RUN docker-php-ext-install opcache
11+ RUN docker-php-ext-install mbstring
12+ RUN docker-php-ext-install bcmath
13+ RUN docker-php-ext-install zip
14+ # Install GD
15+ RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng12-dev
16+ RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
17+ RUN docker-php-ext-install gd
18+
19+ RUN pecl install xdebug && docker-php-ext-enable xdebug
20+ RUN pecl install redis && docker-php-ext-enable redis
21+
22+ RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
23+
24+ RUN apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
25+
26+ RUN usermod -u 1000 www-data
27+
28+ USER www-data
29+
30+ WORKDIR /var/www
31+
32+ EXPOSE 9000
33+ CMD ["php-fpm" ]
Original file line number Diff line number Diff line change 1+ upload_max_filesize = 512M
2+ post_max_size = 100M
3+ date.timezone = Europe/Kiev
You can’t perform that action at this time.
0 commit comments