Please visit https://github.com/ayudadigital/gp-nginx
Docker image and docker-compose sample configuration to bring up a Nginx Statics Server Product to the Teecke Docker Generic Platform (GP).
The product is formed by one container:
- statics: based on nginx:1.17.8 alpine docker image.
-
Use the
docker-compose.yml.sample
file as your docker-compose configuration file. -
Install assets with
devcontrol assets-install
and copy your static files in thedata/usr/share/nginx/html
directory. -
Start with
docker-compose up -d
. -
Open the url http://localhost:8090 in a browser to view your statics.
-
Manage backups of your files:
- Make a backup executing
docker-compose exec statics backup
. - Find the current backup within the
/var/backups/gp/statics/
of the container. - Extract the current backup executing
docker cp $(docker-compose ps -q statics):/var/backups/gp gp
.
- Make a backup executing
-
Stop the platform with
docker-compose stop
.
You can use this docker piece with the Docker Generic Platform project.
None known