-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (69 loc) · 1.53 KB
/
docker-compose.yml
File metadata and controls
69 lines (69 loc) · 1.53 KB
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
version: '3'
services:
minio:
image: minio/minio
ports:
- "9000:9000"
- "9001:9001"
volumes:
- minio_data:/data
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
command: server /data --console-address ":9001"
healthcheck:
test: "curl -f http://localhost:9000/minio/health/live"
interval: 5s
timeout: 60s
retries: 20
db:
image: postgres:alpine3.19
restart: always
environment:
POSTGRES_PASSWORD: "PROD"
POSTGRES_USER: "postgres"
POSTGRES_DB: "postgres"
healthcheck:
test: "pg_isready -d PROD -U postgres"
interval: 5s
timeout: 60s
retries: 20
user: postgres
volumes:
- db-data:/var/lib/postgresql/data
ports:
- "5432:5432"
article54:
build: ./article54
depends_on:
minio:
condition: service_healthy
db:
condition: service_healthy
environment:
PORT: 8080
HOST: "0.0.0.0"
DB_HOST: db
DB_PORT: 5432
DB_USER: postgres
DB_PASSWORD: PROD
DB_NAME: postgres
MINIO_ENDPOINT: minio
MINIO_PORT: 9000
MINIO_ACCESS_KEY: minioadmin
MINIO_SECRET_KEY: minioadmin
PUSH_CHECK: "http://backend:8080/push-check"
PULL_CHECK: "http://backend:8080/pull-check"
ports:
- "8081:8080"
backend:
build: ./server
environment:
PORT: 8080
HOST: "0.0.0.0"
ARTICLE54: "http://article54:8080"
ports:
- "8080:8080"
volumes:
db-data:
minio_data: