From 1d6583e97e556778b475486e0cbc3a22903a9190 Mon Sep 17 00:00:00 2001 From: Mahmoud Zalt Date: Thu, 16 Mar 2017 14:40:45 -0400 Subject: [PATCH] Revert "Add apache conf file for specific virtualhost ServerName" --- .env | 1 + .gitignore | 1 - apache2/Dockerfile | 3 --- apache2/apache-config.conf | 16 -------------- docker-compose.yml | 44 +++++++++++++++----------------------- 5 files changed, 18 insertions(+), 47 deletions(-) create mode 100644 .env delete mode 100644 apache2/apache-config.conf diff --git a/.env b/.env new file mode 100644 index 0000000..accd09a --- /dev/null +++ b/.env @@ -0,0 +1 @@ +COMPOSE_CONVERT_WINDOWS_PATHS=1 diff --git a/.gitignore b/.gitignore index 00571d7..7c6f11b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ .idea /logs /data -.env diff --git a/apache2/Dockerfile b/apache2/Dockerfile index 21373f5..569ba9f 100644 --- a/apache2/Dockerfile +++ b/apache2/Dockerfile @@ -15,6 +15,3 @@ WORKDIR /var/www/public ENTRYPOINT ["/opt/docker/bin/entrypoint.sh"] CMD ["supervisord"] - -# Update the default apache site with the config we created. -ADD apache-config.conf /etc/apache2/sites-enabled/000-default.conf \ No newline at end of file diff --git a/apache2/apache-config.conf b/apache2/apache-config.conf deleted file mode 100644 index aede94e..0000000 --- a/apache2/apache-config.conf +++ /dev/null @@ -1,16 +0,0 @@ - - ServerAdmin me@mydomain.com - DocumentRoot ${WEB_DOCUMENT_ROOT} - ServerName ${SERVER_ALIAS} - - - Options Indexes FollowSymLinks MultiViews - AllowOverride All - Order deny,allow - Allow from all - - - ErrorLog ${APACHE_LOG_DIR}/error.log - CustomLog ${APACHE_LOG_DIR}/access.log combined - - \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 477a74c..f5e1c24 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -77,16 +77,6 @@ services: # IMPORTANT: Set the Remote Interpreter entry matching name to `laravel` - PHP_IDE_CONFIG=serverName=laravel -### PHP-WORKER Container ####################################### - - php-worker: - build: - context: ./php-fpm - dockerfile: Dockerfile-70 # or Dockerfile-56, choose your PHP-FPM container setting - volumes_from: - - applications - command: php artisan queue:work - ### Nginx Server Container ################################## nginx: @@ -117,8 +107,8 @@ services: volumes: - ./logs/apache2:/var/log/apache2 ports: - - "$SERVER_PORT:80" - - "$SERVER_SSL_PORT:443" + - "80:80" + - "443:443" links: - php-fpm @@ -151,14 +141,14 @@ services: build: context: ./mysql args: - - MYSQL_DATABASE=$DB_DATABASE - - MYSQL_USER=$DB_USERNAME - - MYSQL_PASSWORD=$DB_PASSWORD + - MYSQL_DATABASE=homestead + - MYSQL_USER=homestead + - MYSQL_PASSWORD=secret - MYSQL_ROOT_PASSWORD=root volumes: - mysql:/var/lib/mysql ports: - - "$DB_PORT:3306" + - "3306:3306" ### MariaDB Container ####################################### @@ -169,9 +159,9 @@ services: ports: - "3306:3306" environment: - MYSQL_DATABASE: $DB_DATABASE - MYSQL_USER: $DB_USERNAME - MYSQL_PASSWORD: $DB_PASSWORD + MYSQL_DATABASE: homestead + MYSQL_USER: homestead + MYSQL_PASSWORD: secret MYSQL_ROOT_PASSWORD: root ### PostgreSQL Container #################################### @@ -183,9 +173,9 @@ services: ports: - "5432:5432" environment: - POSTGRES_DB: $DB_DATABASE - POSTGRES_USER: $DB_USERNAME - POSTGRES_PASSWORD: $DB_PASSWORD + POSTGRES_DB: homestead + POSTGRES_USER: homestead + POSTGRES_PASSWORD: secret ### PostgreSQL PostGis Container ############################ @@ -196,9 +186,9 @@ services: ports: - "5432:5432" environment: - POSTGRES_DB: $DB_DATABASE - POSTGRES_USER: $DB_USERNAME - POSTGRES_PASSWORD: $DB_PASSWORD + POSTGRES_DB: homestead + POSTGRES_USER: homestead + POSTGRES_PASSWORD: secret ### Neo4j Container ######################################### @@ -322,8 +312,8 @@ services: build: ./phpmyadmin environment: PMA_ARBITRARY: 1 - MYSQL_USER: $DB_USERNAME - MYSQL_PASSWORD: $DB_PASSWORD + MYSQL_USER: homestead + MYSQL_PASSWORD: secret MYSQL_ROOT_PASSWORD: root ports: - "8080:80"