forked from IKatsuba/nx-cloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.test.yml
45 lines (45 loc) · 1.18 KB
/
compose.test.yml
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
services:
api:
build:
context: .
dockerfile: apps/api/Dockerfile
environment:
- PORT=3000
- DB_HOST=127.0.0.1
- DB_PORT=5432
- DB_USER=postgres
- DB_PASSWORD=postgres
- DB_NAME=postgres
- JWT_SECRET=secret
- AWS_S3_ENDPOINT_URL=http://127.0.0.1:9000
- AWS_ACCESS_KEY_ID=minio
- AWS_SECRET_ACCESS_KEY=minio123
- AWS_S3_BUCKET_NAME=nx-cloud
- AWS_REGION=us-east-1
network_mode: host
postgres:
image: postgres:12.1
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- 5432:5432
s3:
image: minio/minio
entrypoint: sh -c "minio server /data --console-address ':9001'"
environment:
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: minio123
MINIO_DOMAIN: localhost
ports:
- 9000:9000
- 9001:9001
create-bucket-and-user:
image: minio/mc
entrypoint: sh -c "mc config host add minio http://s3:9000 minio minio123 && mc mb minio/nx-cloud && mc anonymous set public minio/nx-cloud"
depends_on:
- s3
environment:
MINIO_ACCESS_KEY: minio
MINIO_SECRET_KEY: minio123