2023-08-02 20:59:59 +00:00
|
|
|
---
|
|
|
|
version: "3.9"
|
|
|
|
|
|
|
|
services:
|
|
|
|
mysql:
|
|
|
|
image: mysql
|
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: shhh
|
|
|
|
MYSQL_DATABASE: main
|
|
|
|
|
2023-08-02 22:05:04 +00:00
|
|
|
postgres:
|
|
|
|
image: postgres
|
|
|
|
environment:
|
|
|
|
POSTGRES_PASSWORD: shhh
|
|
|
|
POSTGRES_DB: main
|
|
|
|
|
2023-08-02 20:59:59 +00:00
|
|
|
bootstrap:
|
2024-11-05 17:22:09 +00:00
|
|
|
image: restic-scheduler
|
2023-08-02 20:59:59 +00:00
|
|
|
entrypoint: /bootstrap-tests.sh
|
|
|
|
environment:
|
|
|
|
MYSQL_HOST: mysql
|
|
|
|
MYSQL_USER: root
|
|
|
|
MYSQL_PWD: shhh
|
2023-08-02 22:05:04 +00:00
|
|
|
PGSQL_HOST: postgres
|
|
|
|
PGSQL_USER: postgres
|
|
|
|
PGSQL_PASS: shhh
|
2023-08-02 20:59:59 +00:00
|
|
|
volumes:
|
|
|
|
- ./bootstrap-tests.sh:/bootstrap-tests.sh
|
|
|
|
- ./data:/data
|
|
|
|
|
|
|
|
main:
|
2024-11-05 17:22:09 +00:00
|
|
|
image: restic-scheduler
|
2023-08-02 20:59:59 +00:00
|
|
|
environment:
|
|
|
|
MYSQL_HOST: mysql
|
|
|
|
MYSQL_USER: root
|
|
|
|
MYSQL_PWD: shhh
|
2023-08-02 22:05:04 +00:00
|
|
|
PGSQL_HOST: postgres
|
|
|
|
PGSQL_USER: postgres
|
|
|
|
PGSQL_PASS: shhh
|
2023-08-02 20:59:59 +00:00
|
|
|
volumes:
|
|
|
|
- ./repo:/repo
|
|
|
|
- ./data:/data
|
|
|
|
- ./test-backup.hcl:/test-backup.hcl
|
|
|
|
|
|
|
|
validate:
|
2024-11-05 17:22:09 +00:00
|
|
|
image: restic-scheduler
|
2023-08-02 20:59:59 +00:00
|
|
|
entrypoint: /validate-tests.sh
|
|
|
|
environment:
|
|
|
|
MYSQL_HOST: mysql
|
|
|
|
MYSQL_USER: root
|
|
|
|
MYSQL_PWD: shhh
|
2023-08-02 22:05:04 +00:00
|
|
|
PGSQL_HOST: postgres
|
|
|
|
PGSQL_USER: postgres
|
|
|
|
PGSQL_PASS: shhh
|
2023-08-02 20:59:59 +00:00
|
|
|
volumes:
|
|
|
|
- ./validate-tests.sh:/validate-tests.sh
|
|
|
|
- ./data:/data
|