-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
72 lines (67 loc) · 1.7 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
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
version: "3.8"
services:
project:
build:
target: project-image
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "5"
ports:
- "127.0.0.1:5064:5064"
environment:
- HOST=0.0.0.0
- PORT=5064
- RDS_DB_HOST=${RDS_DB_HOST:-postgres}
- RDS_DB_PORT=${RDS_DB_PORT:-5432}
depends_on:
- postgres
- s3
postgres:
image: postgres:14.2-alpine
ports:
- "127.0.0.1:6432:5432"
environment:
- POSTGRES_DB=${POSTGRES_DB:-project}
- POSTGRES_USER=${POSTGRES_USER:-postgres}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-postgres-project-pilot}
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready --username $$POSTGRES_USER" ]
interval: 10s
timeout: 5s
retries: 5
s3:
image: minio/minio:RELEASE.2022-05-03T20-36-08Z
ports:
- "127.0.0.1:9100:9000"
- "127.0.0.1:9101:9101"
environment:
- MINIO_ROOT_USER=${S3_ACCESS_KEY:-ACCESSKEY/GMIMPKTWGOKHIQYYQHPO}
- MINIO_ROOT_PASSWORD=${S3_SECRET_KEY:-SECRETKEY/HJGKVAS/TRglfFvzDrbYpdknbc}
volumes:
- s3-data-1:/data1
- s3-data-2:/data2
- s3-data-3:/data3
- s3-data-4:/data4
command: minio server /data{1...4} --console-address ":9101"
alembic:
build:
target: alembic-image
environment:
- RDS_DB_HOST=${RDS_DB_HOST:-postgres}
- RDS_DB_PORT=${RDS_DB_PORT:-5432}
volumes:
- ./migrations/:/app/migrations/
- ./project/:/app/project/
depends_on:
postgres:
condition: service_healthy
volumes:
postgres-data:
s3-data-1:
s3-data-2:
s3-data-3:
s3-data-4: