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:
|
|
|
|
image: resticscheduler
|
|
|
|
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:
|
|
|
|
image: resticscheduler
|
|
|
|
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:
|
|
|
|
image: resticscheduler
|
|
|
|
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
|