Updated docker file, created backup and changed to local persistence for DB

This commit is contained in:
Dennis Eckerskorn 2025-05-16 00:28:45 +02:00
parent 52918e3393
commit 67b11504a7
3 changed files with 1891 additions and 6 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/docker/mysql-data/

1885
docker/backup.sql Normal file

File diff suppressed because it is too large Load Diff

View File

@ -12,7 +12,7 @@ services:
ports: ports:
- "3307:3306" - "3307:3306"
volumes: volumes:
- mysql_data:/var/lib/mysql - ./mysql-data:/var/lib/mysql
healthcheck: healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-p1234"] test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-p1234"]
interval: 10s interval: 10s
@ -26,7 +26,8 @@ services:
dockerfile: ../docker/Dockerfile-api dockerfile: ../docker/Dockerfile-api
container_name: memberflow-backend container_name: memberflow-backend
depends_on: depends_on:
- mysql mysql:
condition: service_healthy
ports: ports:
- "8080:8080" - "8080:8080"
environment: environment:
@ -37,6 +38,7 @@ services:
JWT_EXPIRATION: 7200000 JWT_EXPIRATION: 7200000
frontend: frontend:
build: build:
context: .. context: ..
@ -46,6 +48,3 @@ services:
- backend - backend
ports: ports:
- "3000:80" - "3000:80"
volumes:
mysql_data: