SHARE
TWEET

Untitled

a guest Apr 21st, 2018 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: '2'
  2.  
  3. services:
  4.     db:
  5.         build: ./docker/mysql
  6.         volumes:
  7.             - ./docker/mysql/data:/var/lib/mysql
  8.             - ./log/mysql:/var/log/mysql
  9.         environment:
  10.             - MYSQL_ROOT_HOST
  11.             - MYSQL_ALLOW_EMPTY_PASSWORD
  12.             - MYSQL_DATABASE
  13.             - MYSQL_USER
  14.             - MYSQL_PASSWORD
  15.         ports:
  16.             - '3307:3306'
  17.  
  18.     nginx:
  19.         build: ./docker/nginx
  20.         ports:
  21.           - '80:80'
  22.           - '443:443'
  23.         volumes:
  24.           - ./log/nginx:/var/log/nginx
  25.           - ./:/var/www/
  26.  
  27.     php:
  28.         build:
  29.             context: ./docker/php
  30.             args:
  31.                 - APP_ENV=dev
  32.         volumes:
  33.             - ./:/var/www/
  34.         environment:
  35.             - SYMFONY__DATABASE__HOST=${MYSQL_ROOT_HOST}
  36.             - SYMFONY__DATABASE__PORT=${MYSQL_PORT}
  37.             - SYMFONY__DATABASE__NAME=${MYSQL_DATABASE}
  38.             - SYMFONY__DATABASE__USER=${MYSQL_USER}
  39.             - SYMFONY__DATABASE__PASSWORD=${MYSQL_PASSWORD}
  40.             - SYMFONY__RABBITMQ__HOST=${RABBITMQ_HOST}
  41.             - SYMFONY__RABBITMQ__PORT=${RABBITMQ_PORT}
  42.             - SYMFONY__RABBITMQ__USER=${RABBITMQ_USER}
  43.             - SYMFONY__RABBITMQ__PASSWORD=${RABBITMQ_PASSWORD}
  44.             - SYMFONY__RABBITMQ__VHOST=${RABBITMQ_VHOST}
  45.             - SYMFONY__STRIPE__PUBLIC__KEY=${STRIPE_PUBLIC_KEY}
  46.             - SYMFONY__STRIPE__SECRET__KEY=${STRIPE_SECRET_KEY}
  47.             - SYMFONY__PLAID__CLIENT__ID=${PLAID_CLIENT_ID}
  48.             - SYMFONY__PLAID__PUBLIC__KEY=${PLAID_PUBLIC_KEY}
  49.             - SYMFONY__PLAID__SECRET__KEY=${PLAID_SECRET_KEY}
  50.             - SYMFONY__PLAID__ENV=${PLAID_ENV}
  51.             - SYMFONY__MAILER__HOST=${MAILER_HOST}
  52.             - SYMFONY__MAILER__USER=${MAILER_USER}
  53.             - SYMFONY__MAILER__PASSWORD=${MAILER_PASSWORD}
  54.             - SYMFONY__MAILER__TRANSPORT=${MAILER_TRANSPORT}
  55.             - SYMFONY__MAILER__PORT=${MAILER_PORT}
  56.             - SYMFONY__MAILER__ENCRYPTION=${MAILER_ENCRYPTION}
  57.             - SYMFONY__CONTACT__EMAIL=${CONTACT_EMAIL}
  58.             - SYMFONY__DOCUSIGN__INTEGRATOR__KEY=${DOCUSIGN_INTEGRATOR_KEY}
  59.             - SYMFONY__DOCUSIGN__USERNAME=${DOCUSIGN_USERNAME}
  60.             - SYMFONY__DOCUSIGN__PASSWORD=${DOCUSIGN_PASSWORD}
  61.             - SYMFONY__DOCUSIGN__ENVIRONMENT=${DOCUSIGN_ENVIRONMENT}
  62.             - SYMFONY__DOCUSIGN__ACCOUNT__ID=${DOCUSIGN_ACCOUNT_ID}
  63.             - SYMFONY__GOOGLE__ANALYTICS__ID=${GOOGLE_ANALYTICS_ID}
  64.  
  65.     rabbitmq:
  66.         image: rabbitmq
  67.         environment:
  68.             - HOSTNAME=${RABBITMQ_HOST}
  69.             - RABBITMQ_NODENAME=rabbitmq
  70.             - RABBITMQ_DEFAULT_USER=${RABBITMQ_USER}
  71.             - RABBITMQ_DEFAULT_PASS=${RABBITMQ_PASSWORD}
  72.             - RABBITMQ_DEFAULT_VHOST=${RABBITMQ_VHOST}
  73.         ports:
  74.             - 15672:15672
  75.             - 5672:5672
  76.    
  77. FROM mysql:latest
  78.  
  79. COPY my.cnf /etc/mysql/my.cnf
  80.  
  81. RUN rm -rf /var/lib/apt/lists/*
  82.    
  83. # Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
  84. #
  85. # This program is free software; you can redistribute it and/or modify
  86. # it under the terms of the GNU General Public License as published by
  87. # the Free Software Foundation; version 2 of the License.
  88. #
  89. # This program is distributed in the hope that it will be useful,
  90. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  91. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  92. # GNU General Public License for more details.
  93. #
  94. # You should have received a copy of the GNU General Public License
  95. # along with this program; if not, write to the Free Software
  96. # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  97. [mysqld]
  98. sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
  99. !includedir /etc/mysql/conf.d/
  100. !includedir /etc/mysql/mysql.conf.d/
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top