forked from aosfatos/check-up
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yml
More file actions
69 lines (66 loc) · 1.42 KB
/
Copy pathcompose.yml
File metadata and controls
69 lines (66 loc) · 1.42 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
services:
scraper:
env_file: .env
build:
context: .
container_name: healthcheck_scraper
volumes:
- .:/project/
- ./sessions/:/project/sessions/
- ./logs/:/var/log/
tty: true
depends_on:
db:
condition: service_healthy
minio:
condition: service_healthy
db:
image: postgres:16
container_name: healthcheck_db
env_file: ./docker/.env-postgres
ports:
- "15433:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
start_period: 10s
minio:
image: minio/minio
container_name: healthcheck_minio
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
volumes:
- minio_data:/data
command: server /data --console-address ":9001"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:9000/minio/health/live" ]
interval: 30s
timeout: 20s
retries: 3
frontend:
build:
context: ./web/client
container_name: ehfake_frontend
ports:
- "5173:5173"
depends_on:
- backend
backend:
build:
context: ./web/server
container_name: ehfake_backend
ports:
- "8000:8000"
depends_on:
- minio
volumes:
pgdata:
minio_data: