Tested on ubuntu 20.04 INFO Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
PHP: PHP 8.0.3 (cli) (built: Mar 5 2021 08:38:30)
Apache: Apache/2.4.38 (Debian)
For the application to work, it is necessary to run dockerfile or docker-compose
To run on the system, docker and docker-compose must be installed
1.install docker ubuntu
2.install docker-compose ubuntu
NOTE <EXAMPLE> To be replaced with the appropriate values
exit 0 or exit status 0 In linux it means [OK] any other number is an error
1.run in terminal first-run-make-env.sh
2 run-command bash docker ps
3 from displayed list get CONTAINER ID where NAMES api-* (example CONTAINER_ID df6e4586f8ae)
4 run in terminal docker exec <CONTAINER_ID> bash -c /temp/fix.sh
5 run in terminal run-docker-compose.sh It works
docker network create mf-net.env_exampleand save in the same directory as .env or cp .env_example .envdocker-compose builddocker-compose updocker psdf6e4586f8ae)docker exec <CONTAINER_ID> bash -c /temp/fix.shdocker-compose down next docker-compose up It worksdocker network create mf-net (zero command)docker-compose build (first command)docker-compose up (second command to start docker and after building the container)docker ps (list of current containers)docker down -v (stop and remove v-optional)docker exec -it <container_id> bash (wejście do kontenera)
Note: All commands are executed in the directory where docker-compose.yml is located[OK] and cron should display cron is runingNote: in case of port conflicts, database name ... it is possible to change the value in the _.env _ file in the ** .env_example** file, we do not change anything in the main application directory.
NOTE: RUN docker ps The list will include the port, e.g. 8070:8080 the first is the host port, e.g. http://localhost:8070
used in the browser should display a running application
app: http://localhost:<WEB_PORT>
database: localhost:<DATABASE_PORT> user: <DATABASE_USER>(test)
password:<DATABASE_PASSWORD>(1234) database:<DATABASE_NAME> (ccfound)
app login: [email protected] password AHArvk!#AG7dFqm[ (for all user)
RUN docker pull gcr.io/google.com/cloudsdktool/cloud-sdk:latest
TEST docker run gcr.io/google.com/cloudsdktool/cloud-sdk:latest gcloud version
AUTH docker run -ti --name gcloud-config gcr.io/google.com/cloudsdktool/cloud-sdk gcloud auth login
LIST docker run --rm --volumes-from gcloud-config gcr.io/google.com/cloudsdktool/cloud-sdk gcloud compute instances list --project your_project
docker pull mafio69/symfony:latest