-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·83 lines (79 loc) · 1.88 KB
/
docker-compose.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
version: '3.5'
x-service-common: &service-common
env_file: "./server/docker.env"
x-minio-common: &minio-common
image: quay.io/minio/minio:RELEASE.2024-08-03T04-33-23Z-cpuv1
command: server --console-address ":9001" http://minio{1...4}/data{1...2}
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
interval: 30s
timeout: 20s
retries: 3
expose:
- "9000"
- "9001"
environment:
MINIO_ACCESS_KEY: env('S3_ACCESS_KEY')
MINIO_SECRET_KEY: env('S3_SECRET_KEY')
services:
crdb:
container_name: crdb
image: cockroachdb/cockroach:v22.2.5
ports:
- "26257:26257"
- "8080:8080"
command: start-single-node --insecure
volumes:
- ./server/data/node_1:/cockroach/cockroach-data
minio1:
<<: *minio-common
hostname: minio1
volumes:
- ./server/s3/data1-1:/data1
- ./server/s3/data1-2:/data2
minio2:
<<: *minio-common
hostname: minio2
volumes:
- ./server/s3/data2-1:/data1
- ./server/s3/data2-2:/data2
minio3:
<<: *minio-common
hostname: minio3
volumes:
- ./server/s3/data3-1:/data1
- ./server/s3/data3-2:/data2
minio4:
<<: *minio-common
hostname: minio4
volumes:
- ./server/s3/data4-1:/data1
- ./server/s3/data4-2:/data2
nginx-minio:
image: nginx:latest
hostname: nginx
volumes:
- ./nginx-minio.conf:/etc/nginx/nginx.conf:ro
ports:
- "9000:9000"
- "9001:9001"
depends_on:
- minio1
- minio2
- minio3
- minio4
app:
<<: *service-common
build:
context: ./server
dockerfile: Dockerfile
target: development
environment:
PORT: 5000
DATABASE_URL: postgresql://root@crdb:26257/defaultdb?sslmode=disable&schema=public
volumes:
- ./server:/usr/src/app
ports:
- 5000:5000
depends_on:
- crdb