Skip to content

Latest commit

 

History

History
53 lines (39 loc) · 1.67 KB

README.md

File metadata and controls

53 lines (39 loc) · 1.67 KB

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