- Eliminato .env dal repo git per poterlo linkare nel progetto locale

- Impostata configurazione dinamica porte per apache
This commit is contained in:
Riccardo Tribbia 2017-03-01 15:55:33 +01:00
parent 4947dfaad1
commit 8317fbde5c
4 changed files with 22 additions and 22 deletions

1
.env
View File

@ -1 +0,0 @@
COMPOSE_CONVERT_WINDOWS_PATHS=1

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
.idea .idea
/logs /logs
/data /data
.env

View File

@ -1,9 +1,9 @@
<VirtualHost *:8888> <VirtualHost *:$WEB_SERVER_PORT>
ServerAdmin me@mydomain.com ServerAdmin me@mydomain.com
DocumentRoot /var/www/site DocumentRoot ${WEB_DOCUMENT_ROOT}
ServerName local.mydomain.com ServerName ${SERVER_ALIAS}
<Directory /var/www/site/> <Directory ${WEB_DOCUMENT_ROOT}>
Options Indexes FollowSymLinks MultiViews Options Indexes FollowSymLinks MultiViews
AllowOverride All AllowOverride All
Order deny,allow Order deny,allow

View File

@ -104,8 +104,8 @@ services:
volumes: volumes:
- ./logs/apache2:/var/log/apache2 - ./logs/apache2:/var/log/apache2
ports: ports:
- "80:80" - "$SERVER_PORT:80"
- "443:443" - "$SERVER_SSL_PORT:443"
links: links:
- php-fpm - php-fpm
@ -126,14 +126,14 @@ services:
build: build:
context: ./mysql context: ./mysql
args: args:
- MYSQL_DATABASE=homestead - MYSQL_DATABASE=$DB_DATABASE
- MYSQL_USER=homestead - MYSQL_USER=$DB_USERNAME
- MYSQL_PASSWORD=secret - MYSQL_PASSWORD=$DB_PASSWORD
- MYSQL_ROOT_PASSWORD=root - MYSQL_ROOT_PASSWORD=root
volumes: volumes:
- mysql:/var/lib/mysql - mysql:/var/lib/mysql
ports: ports:
- "3306:3306" - "$DB_PORT:3306"
### MariaDB Container ####################################### ### MariaDB Container #######################################
@ -144,9 +144,9 @@ services:
ports: ports:
- "3306:3306" - "3306:3306"
environment: environment:
MYSQL_DATABASE: homestead MYSQL_DATABASE: $DB_DATABASE
MYSQL_USER: homestead MYSQL_USER: $DB_USERNAME
MYSQL_PASSWORD: secret MYSQL_PASSWORD: $DB_PASSWORD
MYSQL_ROOT_PASSWORD: root MYSQL_ROOT_PASSWORD: root
### PostgreSQL Container #################################### ### PostgreSQL Container ####################################
@ -158,9 +158,9 @@ services:
ports: ports:
- "5432:5432" - "5432:5432"
environment: environment:
POSTGRES_DB: homestead POSTGRES_DB: $DB_DATABASE
POSTGRES_USER: homestead POSTGRES_USER: $DB_USERNAME
POSTGRES_PASSWORD: secret POSTGRES_PASSWORD: $DB_PASSWORD
### PostgreSQL PostGis Container ############################ ### PostgreSQL PostGis Container ############################
@ -171,9 +171,9 @@ services:
ports: ports:
- "5432:5432" - "5432:5432"
environment: environment:
POSTGRES_DB: homestead POSTGRES_DB: $DB_DATABASE
POSTGRES_USER: homestead POSTGRES_USER: $DB_USERNAME
POSTGRES_PASSWORD: secret POSTGRES_PASSWORD: $DB_PASSWORD
### Neo4j Container ######################################### ### Neo4j Container #########################################
@ -297,8 +297,8 @@ services:
build: ./phpmyadmin build: ./phpmyadmin
environment: environment:
PMA_ARBITRARY: 1 PMA_ARBITRARY: 1
MYSQL_USER: homestead MYSQL_USER: $DB_USERNAME
MYSQL_PASSWORD: secret MYSQL_PASSWORD: $DB_PASSWORD
MYSQL_ROOT_PASSWORD: root MYSQL_ROOT_PASSWORD: root
ports: ports:
- "8080:80" - "8080:80"