-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
69 lines (65 loc) · 1.35 KB
/
compose.yml
File metadata and controls
69 lines (65 loc) · 1.35 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.9'
services:
server:
container_name: server
build:
context: ./
dockerfile: server.dockerfile
ports:
- "8081:8081"
volumes:
- ./config.json:/app/config.json
- ./tests.yaml:/app/tests.yaml
- ./certs/private_key.pem:/app/certs/private_key.pem
- ./certs/public_key.pem:/app/certs/public_key.pem
env_file:
- env/server.env
networks:
backend:
depends_on:
db:
condition: "service_healthy"
minio:
condition: "service_healthy"
db:
container_name: db
image: postgres
restart: always
volumes:
- db-data:/var/lib/postgresql/data
env_file:
- env/postgres.env
ports:
- "5433:5432"
healthcheck:
test: [ "CMD", "pg_isready" ]
interval: 10s
timeout: 5s
retries: 5
networks:
backend:
minio:
container_name: minio
image: minio/minio
command: server --console-address :9005 /data
ports:
- '9000:9000'
- '9005:9005'
env_file:
- env/minio.env
restart: always
volumes:
- minio-data:/data
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:9000/minio/health/live" ]
interval: 30s
timeout: 20s
retries: 3
networks:
backend:
volumes:
minio-data:
db-data:
driver: local
networks:
backend: