-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (46 loc) · 1.02 KB
/
docker-compose.yml
File metadata and controls
46 lines (46 loc) · 1.02 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
version: '3'
services:
frog-api-service:
build:
context: .
volumes:
- /etc/vitekkor/frogapi/application.yml:/etc/vitekkor/frogapi/application.yml
restart: always
ports:
- "8080:8080"
network_mode: host
depends_on:
- db
- s3
db:
image: postgres:15
restart: always
environment:
POSTGRES_DB: frogapi
POSTGRES_PASSWORD:
volumes:
- /var/lib/postgresql/data:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 30s
timeout: 30s
retries: 3
s3:
image: minio/minio:edge
restart: always
environment:
MINIO_ROOT_USER:
MINIO_ROOT_PASSWORD:
ports:
- "9000:9000"
- "9001:9001"
command: server /data --console-address ":9001"
volumes:
- /var/lib/minio:/data
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:9000/minio/health/live" ]
interval: 30s
timeout: 20s
retries: 3