Add mysql test setup
This commit is contained in:
parent
196c59962b
commit
59cfb40d27
1 changed files with 19 additions and 0 deletions
|
@ -12,7 +12,26 @@ services:
|
||||||
web:
|
web:
|
||||||
image: nginx
|
image: nginx
|
||||||
labels:
|
labels:
|
||||||
|
restic-volume-backup.volumes: true
|
||||||
restic-volume-backup.include: "/tests"
|
restic-volume-backup.include: "/tests"
|
||||||
volumes:
|
volumes:
|
||||||
- ./tests:/srv/tests
|
- ./tests:/srv/tests
|
||||||
- ./.vscode:/srv/code
|
- ./.vscode:/srv/code
|
||||||
|
environment:
|
||||||
|
- SOME_VALUE=test
|
||||||
|
- ANOTHER_VALUE=1
|
||||||
|
mysql:
|
||||||
|
image: mysql
|
||||||
|
labels:
|
||||||
|
restic-volume-backup.mysql: true
|
||||||
|
restic-volume-backup.
|
||||||
|
environment:
|
||||||
|
- MYSQL_ROOT_PASSWORD=my-secret-pw
|
||||||
|
- MYSQL_DATABASE=mydb
|
||||||
|
- MYSQL_USER=myuser
|
||||||
|
- MYSQL_PASSWORD=mypassword
|
||||||
|
volumes:
|
||||||
|
- mysqldata:/var/lib/mysql
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
mysqldata:
|
Loading…
Add table
Reference in a new issue