-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
42 lines (39 loc) · 1.06 KB
/
docker-compose.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
38
39
40
41
42
services:
jest:
build:
context: .
target: jest
environment:
- AWS_ACCESS_KEY_ID=minioadmin
- AWS_SECRET_ACCESS_KEY=minioadmin
- PGUSER=cjworkbench
- PGPASSWORD=cjworkbench
- PGDATABASE=cjworkbench
- PGHOST=database
- PGPORT=5432
depends_on: [ database, gcs-server, s3-server ]
volumes:
- ./src:/app/src:ro
- ./test:/app/test:ro
command: [ "npm", "test" ]
database:
image: postgres:13.3
environment:
- POSTGRES_USER=cjworkbench
- POSTGRES_PASSWORD=cjworkbench
- POSTGRES_DB=cjworkbench
volumes:
- ./test/sql:/docker-entrypoint-initdb.d:ro
gcs-server:
image: fsouza/fake-gcs-server:v1.29.1
volumes:
- ./test/data:/data:ro
command: [ "-port", "80", "-scheme", "http" ]
s3-server:
image: minio/minio:RELEASE.2021-07-08T01-15-01Z
environment:
- MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin
volumes:
- ./test/data:/data:rw # rw because minio needs to write .minio.sys/
command: [ "server", "/data", "--address", ":80" ]