-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.test.yaml
37 lines (36 loc) · 1.13 KB
/
docker-compose.test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
version: "3.9"
services:
mysql:
image: mysql:8.0
environment:
TZ: America/Toronto
MYSQL_DATABASE: "${TEST_MYSQL_DATABASE}"
MYSQL_USER: "${TEST_MYSQL_USER}"
MYSQL_PASSWORD: "${TEST_MYSQL_PASSWORD}"
MYSQL_ROOT_PASSWORD: "${TEST_MYSQL_ROOT_PASSWORD}"
minio:
image: minio/minio:RELEASE.2022-06-20T23-13-45Z
environment:
TZ: America/Toronto
MINIO_ROOT_USER: "${TEST_MINIO_ACCESS_KEY}"
MINIO_ROOT_PASSWORD: "${TEST_MINIO_SECRET_KEY}"
MINIO_REGION_NAME:
MINIO_UPDATE: "off"
command: server /data --console-address ":9090"
# console address not needed but kept for consistency
app:
build: flask
image: ghcr.io/ccmbioinfo/stager:dev
environment:
ST_SECRET_KEY:
TEST_ST_DATABASE_URI: "mysql+pymysql://${TEST_MYSQL_USER}:${TEST_MYSQL_PASSWORD}@mysql/${TEST_MYSQL_DATABASE}"
TEST_MINIO_ENDPOINT: minio:9000
TEST_MINIO_ACCESS_KEY: "${TEST_MINIO_ACCESS_KEY}"
TEST_MINIO_SECRET_KEY: "${TEST_MINIO_SECRET_KEY}"
MINIO_REGION_NAME:
depends_on:
- mysql
- minio
volumes:
- ./flask:/usr/src/stager
command: pytest