Skip to content

A Strichliste docker container base on nginx unpreviledged container

License

Notifications You must be signed in to change notification settings

shokinn/strichliste-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

strichliste-docker

A Strichliste docker-compose base on nginx's unprivileged, php's fpm and Mariadb's container.

Docker images

Frontend

strichliste-frontend

Backend

strichliste-backend

Build locally

Build and run whole stack locally

docker build -t ghcr.io/shokinn/strichliste-frontend:develop -f ./docker/frontend/Dockerfile . \
    && docker build -t ghcr.io/shokinn/strichliste-backend:develop -f ./docker/backend/Dockerfile . \
    && docker compose up

Build container independently

Frontend:

docker build -t ghcr.io/shokinn/strichliste-frontend:develop -f ./docker/frontend/Dockerfile .

Backend:

docker build -t ghcr.io/shokinn/strichliste-backend:develop -f ./docker/backend/Dockerfile .

Backups

Performing a manual local database dump

  1. Go to your directory where your docker-compose.yml is.
  2. Dump databases:
docker compose exec -T database mariadb sh -c 'exec mysqldump --all-databases -uroot -p"${MARIADB_ROOT_PASSWORD}"' > mariadb-dump-$(date +%F_%H-%M-%S).sql