Customer Server
‚
Step 2: Go to the folder bin/ci/smart_parking.
‚
Step 3: You should modify the
fi
les Docker
fi
le and docker-compose.yml that we provide in order to make sure
that the security required for your project is matched.
‚
Database
: We provide a
fi
le with the structure for the database, you can change the name of the main
table and also use it to add any additional tables you may need, the
fi
le is located on:
bin/ci/smart_parking/docker-entrypoint-initdb.d/init.sql
This
fi
le will be executed one time when the database container is created and it should be added to the
docker group.
‚
File structure: The application
fi
les should be placed in the
“
www-data
”
group from the web container.
You can map a host user to www-data by UID as it is commented on the Docker
fi
le or you can assign the
fi
les to the correct UID
(33 by default).
‚
Step 4: Execute
“
docker-compose up
”
to launch the project (the 1st time, it may take some time to execute).
‚
Step 5: You can check if the installation is completed navigating to
“
http://MACH
I
NE_
I
P:7000
”
: you should see
the Remote Con
fi
guration Form login screen.
Multiples instances
I
f you want to use the Customer Server with more than one application, you need to deploy one instance of the
container for each application. You must follow the same steps axplained above, but if the new installation is on
the same machine you will have to change the application ports to avoid con
fl
icts between the applications: modify
the
docker-compose.yml
fi
le of the new application and change the default ports (7000 for the web app and 7001
for the database).
Old
fi
le:
ports:
-
"7000:80"
ports:
-
"7001:3306"
New
fi
le:
ports:
-
"8000:80"
ports:
-
"8001:3306"
Note:
The port can be any open port on your server.
7.2.2. Server
‚
Step 1: Extract on your server the zip
fi
le provided by Libelium containing the Customer Server application
source
fi
les.
‚
Step 2: Check the right owner/group and permissions of all the
fi
les extracted, usually using www-data group
is default in Ubuntu environment.
‚
Step 3: Check the permissions of all folders and
fi
les, usually using 0770 for directories and 0660 for
fi
les is
default in Ubuntu environment.
- 94 -
v7.5
Содержание Waspmote Smart Parking v2
Страница 1: ......
Страница 23: ...Smart Parking node 3 6 4 Node program flowchart Figure Smart Parking node program flowchart 22 v7 5 ...
Страница 92: ...LoRaWAN Network Server setup Figure Check In to DeviceHQ 91 v7 5 ...
Страница 135: ...Deployment and installation Figure Final section of the anchor and screw 134 v7 5 ...
Страница 143: ...Safety Guides 11 Safety Guides 11 1 Smart Parking Chemical Fixing Cartridge 142 v7 5 ...
Страница 144: ...Safety Guides 143 v7 5 ...
Страница 145: ...Safety Guides 144 v7 5 ...
Страница 146: ...Safety Guides 145 v7 5 ...
Страница 147: ...Safety Guides 146 v7 5 ...
Страница 148: ...Safety Guides 147 v7 5 ...
Страница 149: ...Safety Guides 148 v7 5 ...
Страница 150: ...Safety Guides 149 v7 5 ...
Страница 151: ...Safety Guides 150 v7 5 ...
Страница 152: ...Safety Guides 151 v7 5 ...
Страница 153: ...Safety Guides 152 v7 5 ...
Страница 154: ...Safety Guides 153 v7 5 ...