Skip to content

Commit

Permalink
Add backup volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
ElisDN committed Jan 12, 2025
1 parent 7472faf commit 8207dab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker-compose-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ services:

site-mysql-backup:
image: ${REGISTRY}/site-mysql-backup:${IMAGE_TAG}
volumes:
- site-mysql-backup:/app
environment:
BACKUP_NAME: site-mysql
MYSQL_HOST: site-mysql
Expand Down Expand Up @@ -202,6 +204,7 @@ services:
- backup_aws_secret_access_key
volumes:
- site-upload:/upload:ro
- site-upload-backup:/app
deploy:
labels:
- swarm.cronjob.enable=true
Expand Down Expand Up @@ -249,7 +252,9 @@ secrets:
volumes:
site-assets:
site-upload:
site-upload-backup:
site-mysql:
site-mysql-backup:
site-redis:

networks:
Expand Down
5 changes: 5 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ services:
- ${REGISTRY:-localhost}/site-dev-mysql-backup:cache
cache_to:
- type=inline
volumes:
- site-mysql-backup:/app
environment:
BACKUP_NAME: site-mysql
MYSQL_HOST: site-mysql
Expand Down Expand Up @@ -186,6 +188,7 @@ services:
- backup_aws_secret_access_key
volumes:
- ./public/upload:/upload:ro
- site-upload-backup:/app

site-redis:
image: ${REGISTRY:-localhost}/site-dev-redis:cache
Expand Down Expand Up @@ -273,7 +276,9 @@ secrets:
file: ./secrets/backup_aws_secret_access_key

volumes:
site-upload-backup:
site-mysql:
site-mysql-backup:
site-redis:
site-backup-storage:

Expand Down

0 comments on commit 8207dab

Please sign in to comment.