-
Notifications
You must be signed in to change notification settings - Fork 54
/
docker-compose.e2e.yaml
52 lines (52 loc) · 1.23 KB
/
docker-compose.e2e.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
43
44
45
46
47
48
49
50
51
52
version: "3"
services:
db:
image: postgres:13.3
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: password
ports:
- 5432:5432
redis:
image: redis:latest
ports:
- 6379:6379
minio:
image: minio/minio:latest
environment:
MINIO_ROOT_USER: root
MINIO_ROOT_PASSWORD: password
command: server --console-address ":9001" /data
ports:
- 9000:9000
- 9001:9001
createbuckets:
image: minio/mc
depends_on:
- minio
entrypoint: >
/bin/sh -c "
/usr/bin/mc alias set myminio http://minio:9000 root password;
/usr/bin/mc mb myminio/image --region=ap-northeast-1;
/usr/bin/mc anonymous set public myminio/image;
tail -f /dev/null;
"
e2e:
build:
context: .
dockerfile: Dockerfile.e2e
args:
DATABASE_URL: postgresql://root:password@db:5432/app-db?schema=public
environment:
REDIS_HOST: redis
REDIS_PORT: 6379
AWS_S3_ENDPOINT: http://minio:9000
AWS_ACCESS_KEY_ID: root
AWS_SECRET_ACCESS_KEY: password
DATABASE_URL: postgresql://root:password@db:5432/app-db?schema=public
depends_on:
- db
- redis
- createbuckets
ports:
- "3000:3000"